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 |
rootPartId
CAN_INVALIDATE, contentType, CT_APP_OCTET_STREAM, CT_DEFAULT, 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(ContentType contentType) |
Multipart(HeaderSet headers,
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, sevenbit
bufferInput, create, dispose, fini, getContentEncoding, getContentId, getContentLength, getContentType, getHeaders, getInputStream, getParent, getSource, initSource, parse, registerFactory, setParent, write
public Multipart(ContentType contentType) throws java.io.IOException
java.io.IOException
public Multipart(HeaderSet headers, ContentType contentType)
public boolean contentAvailable()
contentAvailable
in class Body
public void writeContent(java.io.OutputStream os, int flags) throws java.io.IOException
Body
Body.write(java.io.OutputStream, int)
, but does not include the
headers for the body.writeContent
in class Body
java.io.IOException
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 Body
java.io.IOException
Body.parse()
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel