Package com.ning.http.client.multipart
Class ByteArrayPart
java.lang.Object
com.ning.http.client.multipart.PartBase
com.ning.http.client.multipart.AbstractFilePart
com.ning.http.client.multipart.ByteArrayPart
- 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
ConstructorsConstructorDescriptionByteArrayPart(String name, byte[] bytes) ByteArrayPart(String name, byte[] bytes, String contentType) ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset) ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName) ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId) ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId, String transferEncoding) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()protected longprotected 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
-
ByteArrayPart
-
ByteArrayPart
-
ByteArrayPart
-
ByteArrayPart
-
ByteArrayPart
-
ByteArrayPart
-
-
Method Details
-
sendData
- Specified by:
sendDatain classPartBase- Throws:
IOException
-
getDataLength
protected long getDataLength()- Specified by:
getDataLengthin classPartBase
-
getBytes
public byte[] getBytes() -
write
- Throws:
IOException
-