|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IDataHandler defines the operations common to all MIME data handlers.
| Method Summary | |
boolean |
dispose()
Dispose of the content and return true if the operation was success. |
java.io.InputStream |
getInputStream()
Return an input stream for reading the MIME data content. |
void |
readContent(java.io.InputStream input,
int length,
java.lang.String id,
byte[] delimiter,
Context context)
Read the MIME data content and store it for future retrieval. |
| Method Detail |
public void readContent(java.io.InputStream input,
int length,
java.lang.String id,
byte[] delimiter,
Context context)
throws java.io.IOException
input - The input stream to read the MIME data content.length - The size of the content specified by the Content-Length header.id - The id of the attachment specified by the Content-ID or Content-Location headers.delimiter - The delimiter of the attachment in the stream. Should be used when
length is not setcontext - The context of the service or proxy.
java.io.IOExceptionpublic java.io.InputStream getInputStream()
public boolean dispose()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||