public class ByteArrayPart extends FileLikePart
DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING
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 and Description |
---|
ByteArrayPart(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) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
getFileName, setFileName, toString
addCustomHeader, getCharset, getContentId, getContentType, getCustomHeaders, getDispositionType, getName, getTransferEncoding, setCustomHeaders, setDispositionType
public ByteArrayPart(String name, byte[] bytes)
public ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName)
public ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId)
Copyright © 2015. All Rights Reserved.