| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final Charset | |
| pack-priv static final ByteArrayBuffer | |
| private String | epilogue
The epilogue to be included after the multipart content. |
| pack-priv static final ByteArrayBuffer | |
| private String | preamble
The preamble to be included before the multipart content. |
| pack-priv static final ByteArrayBuffer |
| Access | Constructor and Description |
|---|---|
| public | AbstractMultipartFormat(final Charset
the character set to use. May be charset, final String null, in which case StandardCharsets#ISO_8859_1 is used.to use - must not be boundary)nullCreates an instance with the specified settings. |
| public | AbstractMultipartFormat(final Charset
the charset to use. charset, final String the boundary string to use. boundary, final String the preamble string to use. Can be preamble, final String null.the epilogue string to use. Can be epilogue)null.Constructs a new instance of |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | doWriteTo(final OutputStream
the output stream to write the message to. out, final boolean whether to write the content of each part. writeContent)Writes the multipart message to the specified output stream. |
| pack-priv static ByteArrayBuffer | |
| protected abstract void | formatMultipartHeader(final MultipartPart part, final OutputStream out)
Write the multipart header fields; depends on the style. |
| public abstract List | |
| public long | Returns: total length of the multipart entity if known,-1
otherwise.Determines the total length of the multipart content (content length of individual parts plus that of extra elements required to delimit the parts from one another). |
| pack-priv static boolean | |
| pack-priv static CharSequence | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| public void |
| boundary | back to summary |
|---|---|
| pack-priv final String boundary | |
| charset | back to summary |
|---|---|
| pack-priv final Charset charset | |
| CR_LF | back to summary |
|---|---|
| pack-priv static final ByteArrayBuffer CR_LF | |
| epilogue | back to summary |
|---|---|
| private String epilogue The epilogue to be included after the multipart content. | |
| FIELD_SEP | back to summary |
|---|---|
| pack-priv static final ByteArrayBuffer FIELD_SEP | |
| preamble | back to summary |
|---|---|
| private String preamble The preamble to be included before the multipart content. | |
| TWO_HYPHENS | back to summary |
|---|---|
| pack-priv static final ByteArrayBuffer TWO_HYPHENS | |
| AbstractMultipartFormat | back to summary |
|---|---|
| public AbstractMultipartFormat(final Charset charset, final String boundary) Creates an instance with the specified settings.
| |
| AbstractMultipartFormat | back to summary |
|---|---|
| public AbstractMultipartFormat(final Charset charset, final String boundary, final String preamble, final String epilogue) Constructs a new instance of
| |
| AbstractMultipartFormat | back to summary |
|---|---|
| public AbstractMultipartFormat(final String boundary) | |
| doWriteTo | back to summary |
|---|---|
| pack-priv void doWriteTo(final OutputStream out, final boolean writeContent) throws IOException Writes the multipart message to the specified output stream.
If If
| |
| encode | back to summary |
|---|---|
| pack-priv static ByteArrayBuffer encode(final Charset charset, final CharSequence string) | |
| formatMultipartHeader | back to summary |
|---|---|
| protected abstract void formatMultipartHeader(final MultipartPart part, final OutputStream out) throws IOException Write the multipart header fields; depends on the style. | |
| getParts | back to summary |
|---|---|
| public abstract List | |
| getTotalLength | back to summary |
|---|---|
| public long getTotalLength() Determines the total length of the multipart content (content length of individual parts plus that of extra elements required to delimit the parts from one another). If any of the @{link BodyPart}s contained in this object is of a streaming entity of unknown length the total length is also unknown. This method buffers only a small amount of data in order to determine the total length of the entire entity. The content of individual parts is not buffered.
| |
| isLineBreak | back to summary |
|---|---|
| pack-priv static boolean isLineBreak(final char ch) | |
| stripLineBreaks | back to summary |
|---|---|
| pack-priv static CharSequence stripLineBreaks(final CharSequence s) | |
| writeBytes | back to summary |
|---|---|
| pack-priv static void writeBytes(final ByteArrayBuffer b, final OutputStream out) throws IOException | |
| writeBytes | back to summary |
|---|---|
| pack-priv static void writeBytes(final CharSequence s, final Charset charset, final OutputStream out) throws IOException | |
| writeBytes | back to summary |
|---|---|
| pack-priv static void writeBytes(final CharSequence s, final OutputStream out) throws IOException | |
| writeField | back to summary |
|---|---|
| pack-priv static void writeField(final MimeField field, final OutputStream out) throws IOException | |
| writeField | back to summary |
|---|---|
| pack-priv static void writeField(final MimeField field, final Charset charset, final OutputStream out) throws IOException | |
| writeTo | back to summary |
|---|---|
| public void writeTo(final OutputStream out) throws IOException Writes out the content in the multipart/form encoding. This method produces slightly different formatting depending on its compatibility mode. | |