public interface Part
Modifier and Type | Field and Description |
---|---|
static byte[] |
CRLF_BYTES
Carriage return/linefeed as a byte array
|
static byte[] |
EXTRA_BYTES
Extra characters as a byte array
|
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
getCharset()
Return the character encoding of this part.
|
java.lang.String |
getContentId()
Return the content ID of this part.
|
java.lang.String |
getContentType()
Returns the content type of this part.
|
java.util.List<Param> |
getCustomHeaders() |
java.lang.String |
getDispositionType()
Gets the disposition-type to be used in Content-Disposition header
|
java.lang.String |
getName()
Return the name of this part.
|
java.lang.String |
getTransferEncoding()
Return the transfer encoding of this part.
|
static final byte[] CRLF_BYTES
static final byte[] EXTRA_BYTES
java.lang.String getName()
java.lang.String getContentType()
null
to exclude the content
type headerjava.nio.charset.Charset getCharset()
null
to exclude the
character encoding headerjava.lang.String getTransferEncoding()
null
to exclude the
transfer encoding headerjava.lang.String getContentId()
null
to exclude the content ID
headerjava.lang.String getDispositionType()
java.util.List<Param> getCustomHeaders()
Copyright © 2018. All Rights Reserved.