public class HttpRFC7578Multipart extends Object
| Constructor and Description |
|---|
HttpRFC7578Multipart(Charset charset,
String boundary,
List<FormBodyPart> parts) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
formatMultipartHeader(FormBodyPart part,
OutputStream out)
Write the multipart header fields; depends on the style.
|
List<FormBodyPart> |
getBodyParts() |
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).
|
void |
writeTo(OutputStream out)
Writes out the content in the multipart/form encoding.
|
public HttpRFC7578Multipart(Charset charset, String boundary, List<FormBodyPart> parts)
public List<FormBodyPart> getBodyParts()
protected void formatMultipartHeader(FormBodyPart part, OutputStream out) throws IOException
IOExceptionpublic void writeTo(OutputStream out) throws IOException
IOExceptionpublic long getTotalLength()
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.
-1
otherwise.Copyright © 1999–2018 The Apache Software Foundation. All rights reserved.