|
Vordel SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vordel.mime.Body
com.vordel.mime.RawBody
public class RawBody
The fallback bodypart type for otherwise unknown MIME types.
This class is a pure implementation of Body, and does not provide any class specific operations.
Field Summary |
---|
Fields inherited from class com.vordel.mime.Body |
---|
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 Summary | |
---|---|
RawBody(HeaderSet headers,
ContentType contentType)
|
Method Summary | |
---|---|
boolean |
contentAvailable()
|
long |
getContentLength(int flags)
Return the Content length of the body. |
void |
parse(java.io.InputStream is)
Parse a body from a specific InputStream. |
void |
purgeContent()
Bodies are purged() when they are no longer in use. |
void |
writeContent(java.io.OutputStream ios,
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. |
Methods inherited from class com.vordel.mime.Body |
---|
bufferInput, create, dispose, fini, getContentEncoding, getContentId, getContentType, getHeaders, getInputStream, getParent, getSource, initSource, parse, registerFactory, setParent, sevenbit, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawBody(HeaderSet headers, ContentType contentType)
Method Detail |
---|
public long getContentLength(int flags) throws java.io.IOException
Body
Note that as the flags sent to the Body.write(java.io.OutputStream, int)
method may
affect the output, this method must be passed the same flags.
getContentLength
in class Body
java.io.IOException
public boolean contentAvailable()
contentAvailable
in class Body
public void parse(java.io.InputStream is) 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()
public void writeContent(java.io.OutputStream ios, 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 purgeContent()
Body
purgeContent
in class Body
|
Vordel SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |