public interface Part
Modifier and Type | Field and Description |
---|---|
static byte[] |
CHARSET_BYTES
Content charset as a byte array
|
static byte[] |
CONTENT_DISPOSITION_BYTES
Content dispostion as a byte array
|
static byte[] |
CONTENT_ID_BYTES
Content type header as a byte array
|
static byte[] |
CONTENT_TRANSFER_ENCODING_BYTES
Content type header as a byte array
|
static byte[] |
CONTENT_TYPE_BYTES
Content type header as a byte array
|
static byte[] |
CRLF_BYTES
Carriage return/linefeed as a byte array
|
static byte[] |
EXTRA_BYTES
Extra characters as a byte array
|
static byte[] |
FORM_DATA_DISPOSITION_TYPE_BYTES
form-data as a byte array
|
static byte[] |
NAME_BYTES
name as a byte array
|
static byte |
QUOTE_BYTE
Content dispostion as a byte
|
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Return the character encoding of this part.
|
String |
getContentId()
Return the content ID of this part.
|
String |
getContentType()
Returns the content type of this part.
|
List<Param> |
getCustomHeaders() |
String |
getDispositionType()
Gets the disposition-type to be used in Content-Disposition header
|
String |
getName()
Return the name of this part.
|
String |
getTransferEncoding()
Return the transfer encoding of this part.
|
static final byte[] CRLF_BYTES
static final byte QUOTE_BYTE
static final byte[] EXTRA_BYTES
static final byte[] CONTENT_DISPOSITION_BYTES
static final byte[] FORM_DATA_DISPOSITION_TYPE_BYTES
static final byte[] NAME_BYTES
static final byte[] CONTENT_TYPE_BYTES
static final byte[] CHARSET_BYTES
static final byte[] CONTENT_TRANSFER_ENCODING_BYTES
static final byte[] CONTENT_ID_BYTES
String getName()
String getContentType()
null
to exclude the content
type headerCharset getCharset()
null
to exclude the
character encoding headerString getTransferEncoding()
null
to exclude the
transfer encoding headerString getContentId()
null
to exclude the content ID
headerString getDispositionType()
Copyright © 2016. All Rights Reserved.