Package com.ning.http.client.multipart
Class FilePart
java.lang.Object
com.ning.http.client.multipart.PartBase
com.ning.http.client.multipart.AbstractFilePart
com.ning.http.client.multipart.FilePart
- All Implemented Interfaces:
Part
-
Field Summary
Fields inherited from class com.ning.http.client.multipart.AbstractFilePart
DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODINGFields inherited from class com.ning.http.client.multipart.PartBase
AHC_ALLOW_UTF8, HEADERS_CHARSETFields inherited from interface com.ning.http.client.multipart.Part
CHARSET_BYTES, CONTENT_DISPOSITION_BYTES, CONTENT_ID_BYTES, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE_BYTES, CRLF_BYTES, EXTRA_BYTES, FORM_DATA_DISPOSITION_TYPE_BYTES, NAME_BYTES, QUOTE_BYTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetFile()protected voidsendData(OutputStream out) longwrite(WritableByteChannel target, byte[] boundary) Methods inherited from class com.ning.http.client.multipart.AbstractFilePart
generateFileEnd, generateFileStart, getFileName, getStalledTime, setFileName, setStalledTime, toString, visitDispositionHeaderMethods inherited from class com.ning.http.client.multipart.PartBase
addCustomHeader, getCharset, getContentId, getContentType, getDispositionType, getName, getTransferEncoding, length, setCustomHeaders, setDispositionType, visitContentIdHeader, visitContentTypeHeader, visitCustomHeaders, visitEnd, visitEndOfHeaders, visitStart, visitTransferEncodingHeader, write
-
Constructor Details
-
FilePart
-
FilePart
-
FilePart
-
FilePart
-
FilePart
-
FilePart
-
-
Method Details
-
sendData
- Specified by:
sendDatain classPartBase- Throws:
IOException
-
getDataLength
protected long getDataLength()- Specified by:
getDataLengthin classPartBase
-
getFile
-
write
- Throws:
IOException
-