| java.lang.Object | |||
| ↳ | com.ning.http.multipart.Part | ||
| ↳ | com.ning.http.multipart.PartBase | ||
| ↳ | com.ning.http.multipart.FilePart | ||
This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DEFAULT_CHARSET | Default charset of file attachments. | |||||||||
| String | DEFAULT_CONTENT_TYPE | Default content encoding of file attachments. | |||||||||
| String | DEFAULT_TRANSFER_ENCODING | Default transfer encoding of file attachments. | |||||||||
| String | FILE_NAME | Attachment's file name | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.ning.http.multipart.Part
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
FilePart Constructor.
| |||||||||||
FilePart Constructor.
| |||||||||||
FilePart Constructor.
| |||||||||||
FilePart Constructor.
| |||||||||||
FilePart Constructor.
| |||||||||||
FilePart Constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the source of the file part.
| |||||||||||
Return the length of the data.
| |||||||||||
Write the data in "source" to the specified stream.
| |||||||||||
Write the disposition header to the output stream
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.ning.http.multipart.PartBase
| |||||||||||
From class
com.ning.http.multipart.Part
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.ning.http.client.Part
| |||||||||||
Default charset of file attachments.
Default content encoding of file attachments.
Default transfer encoding of file attachments.
Attachment's file name
FilePart Constructor.
| name | the name for this part |
|---|---|
| partSource | the source for this part |
FilePart Constructor.
| name | the name of the file part |
|---|---|
| file | the file to post |
| FileNotFoundException | if the file is not a normal file or if it is not readable. |
|---|
FilePart Constructor.
| name | the name of the file part |
|---|---|
| file | the file to post |
| contentType | the content type for this part, if null the
default is used |
| charset | the charset encoding for this part, if null the
default is used |
| FileNotFoundException | if the file is not a normal file or if it is not readable. |
|---|
FilePart Constructor.
| name | the name of the file part |
|---|---|
| fileName | the file name |
| file | the file to post |
| FileNotFoundException | if the file is not a normal file or if it is not readable. |
|---|
FilePart Constructor.
| name | the name of the file part |
|---|---|
| fileName | the file name |
| file | the file to post |
| contentType | the content type for this part, if null the
default is used |
| charset | the charset encoding for this part, if null the
default is used |
| FileNotFoundException | if the file is not a normal file or if it is not readable. |
|---|
Return the length of the data.
| IOException | if an IO problem occurs |
|---|
Write the data in "source" to the specified stream.
| out | The output stream. |
|---|
| IOException | if an IO problem occurs. |
|---|
Write the disposition header to the output stream
| out | The output stream |
|---|
| IOException | If an IO problem occurs |
|---|