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, write
public Multipart(com.vordel.mime.ContentType contentType)
throws java.io.IOException
java.io.IOException
public Multipart(com.vordel.mime.HeaderSet headers,
com.vordel.mime.ContentType contentType)
public boolean contentAvailable()
contentAvailable in class Body
public 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 Bodyjava.io.IOException
public void parse(java.io.InputStream input)
throws java.io.IOException
BodyThis should be considered "private" to callers: it must be invoked via Body.parse()
parse in class Bodyjava.io.IOExceptionBody.parse()
This documentation and all its contents and graphics, copyright � 1999 - 2011 Vordel