public class Multipart extends CompoundBody
A Multipart body implements the CompoundBody interface, and exposes no specific methods of its own.
| Modifier and Type | Class and Description |
|---|---|
static class |
Multipart.Factory |
rootPartIdCAN_INVALIDATE, contentType, CT_APP_OCTET_STREAM, CT_DEFAULT, CT_MULTIPART_FORM_DATA, CT_MULTIPART_RELATED, CT_TEXT_PLAIN, CT_TEXT_XML_UTF8, CT_XOP_APPLICATION_XML, PUSH_WRITE, REMOVE_XFER_ENCODING_ON_WRITE_DEPRECATED, RETAIN_XFER_ENCODING_ON_READ, WRITE_NO_CTE| Constructor and Description |
|---|
Multipart(com.vordel.mime.ContentType contentType) |
Multipart(com.vordel.mime.HeaderSet headers,
com.vordel.mime.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentAvailable() |
void |
parse(java.io.InputStream input)
Parse a body from a specific InputStream.
|
void |
writeContent(java.io.OutputStream os,
int flags)
Write the content of the body to the specified OutputStream
This is similar to
Body.write(java.io.OutputStream, int), but does not include the
headers for the body. |
addPart, addPart, clear, getPart, getParts, getPartsById, getPartsByIdMap, getPartsCount, getStartPart, purgeContent, removePart, removePart, replacePart, setStartPartID, sevenbitbufferInput, create, dispose, fini, getContentEncoding, getContentId, getContentLength, getContentType, getHeaders, getInputStream, getParent, getSource, initSource, parse, registerFactory, setParent, willwrite, writepublic Multipart(com.vordel.mime.ContentType contentType)
throws java.io.IOException
java.io.IOExceptionpublic Multipart(com.vordel.mime.HeaderSet headers,
com.vordel.mime.ContentType contentType)
public boolean contentAvailable()
contentAvailable in class Bodypublic void writeContent(java.io.OutputStream os,
int flags)
throws java.io.IOException
BodyBody.write(java.io.OutputStream, int), but does not include the
headers for the body.writeContent in class Bodyos - OutputStream The OutputStream destination for the Body.flags - Customize what gets written.java.io.IOException - If there are problems writing to the OutputStream.public void parse(java.io.InputStream input)
throws java.io.IOException
Body
This should be considered "private" to callers:
it must be invoked via
Body.parse()
parse in class Bodyinput - The InputStream from which to parse the body.java.io.IOException - if there are problems reading from the InputStream.Body.parse()
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel