java.lang.Object | |
↳ | com.ning.http.multipart.Part |
![]() |
![]() |
This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BOUNDARY | The boundary | |||||||||
String | CHARSET | Content charset | |||||||||
String | CONTENT_DISPOSITION | Content dispostion characters | |||||||||
String | CONTENT_TRANSFER_ENCODING | Content type header | |||||||||
String | CONTENT_TYPE | Content type header | |||||||||
String | CRLF | Carriage return/linefeed | |||||||||
String | EXTRA | Extra characters | |||||||||
String | QUOTE | Content dispostion characters |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
uses a constant string. Rather use
getPartBoundary()
| |||||||||||
Return the character encoding of this part.
| |||||||||||
Returns the content type of this part.
| |||||||||||
Return the total sum of all parts and that of the last boundary
| |||||||||||
Gets the length of the multipart message including the given parts.
| |||||||||||
Return the name of this part.
| |||||||||||
Return the transfer encoding of this part.
| |||||||||||
Tests if this part can be sent more than once.
| |||||||||||
Return the full length of all the data.
| |||||||||||
Write all the data to the output stream.
| |||||||||||
Write all parts and the last boundary to the specified output stream.
| |||||||||||
Write all parts and the last boundary to the specified output stream.
| |||||||||||
Write all parts and the last boundary to the specified output stream.
| |||||||||||
Return a string representation of this object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the part boundary to be used.
| |||||||||||
Return the length of the main content
| |||||||||||
Write the content type header to the specified output stream
| |||||||||||
Write the data to the specified output stream
| |||||||||||
Write the content disposition header to the specified output stream
| |||||||||||
Write the end data to the output stream.
| |||||||||||
Write the end of the header to the output stream
| |||||||||||
Write the start to the specified output stream
| |||||||||||
Write the content transfer encoding header to the specified
output stream
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The boundary
Content charset
Content dispostion characters
Content type header
Content type header
Carriage return/linefeed
Extra characters
Content dispostion characters
This method is deprecated.
uses a constant string. Rather use getPartBoundary()
Return the boundary string.
Return the character encoding of this part.
null
to exclude the character
encoding header
Returns the content type of this part.
null
to exclude the content type header
Return the total sum of all parts and that of the last boundary
parts | The parts. |
---|
IOException | If an I/O error occurs while writing the parts. |
---|
Gets the length of the multipart message including the given parts.
parts | The parts. |
---|---|
partBoundary | The ASCII bytes to use as the part boundary. |
IOException | If an I/O error occurs while writing the parts. |
---|
Return the name of this part.
Return the transfer encoding of this part.
null
to exclude the transfer encoding header
Tests if this part can be sent more than once.
true
if sendData(java.io.OutputStream)
can be successfully called
more than once.Return the full length of all the data. If you override this method make sure to override #send(OutputStream) as well
IOException | If an IO problem occurs |
---|
Write all the data to the output stream. If you override this method make sure to override #length() as well
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
IOException |
---|
Write all parts and the last boundary to the specified output stream.
out | The stream to write to. |
---|---|
part | The part to write. |
IOException | If an I/O error occurs while writing the parts. |
---|
Write all parts and the last boundary to the specified output stream.
out | The stream to write to. |
---|---|
parts | The parts to write. |
IOException | If an I/O error occurs while writing the parts. |
---|
Write all parts and the last boundary to the specified output stream.
out | The stream to write to. |
---|---|
parts | The parts to write. |
partBoundary | The ASCII bytes to use as the part boundary. |
IOException | If an I/O error occurs while writing the parts. |
---|
Return a string representation of this object.
Gets the part boundary to be used.
Return the length of the main content
IOException | If an IO problem occurs |
---|
Write the content type header to the specified output stream
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
Write the data to the specified output stream
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
Write the content disposition header to the specified output stream
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
Write the end data to the output stream.
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
Write the end of the header to the output stream
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
Write the start to the specified output stream
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|
Write the content transfer encoding header to the specified output stream
out | The output stream |
---|
IOException | If an IO problem occurs. |
---|