public abstract class PartBase extends Part
CHARSET, CONTENT_DISPOSITION, CONTENT_ID, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, CRLF, EXTRA, QUOTE
Constructor and Description |
---|
PartBase(String name,
String contentType,
String charSet,
String transferEncoding,
String contentId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
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.
|
String |
getName()
Returns the name.
|
String |
getTransferEncoding()
Returns the transfer encoding of this part.
|
void |
setCharSet(String charSet)
Sets the character encoding.
|
void |
setContentId(String contentId) |
void |
setContentType(String contentType)
Sets the content type.
|
void |
setName(String name)
Sets the part name.
|
void |
setTransferEncoding(String transferEncoding)
Sets the transfer encoding.
|
contentIdHeaderLength, contentTypeHeaderLength, dispositionHeaderLength, endLength, endOfHeaderLength, getLengthOfParts, isRepeatable, length, lengthOfData, send, sendContentIdHeader, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendMessageEnd, sendPart, sendParts, sendStart, sendTransferEncodingHeader, toString, transferEncodingHeaderLength
public String getName()
public String getContentType()
getContentType
in class Part
public String getCharSet()
getCharSet
in class Part
public String getTransferEncoding()
getTransferEncoding
in class Part
public void setCharSet(String charSet)
charSet
- the character encoding, or null
to exclude the character encoding headerpublic void setContentType(String contentType)
contentType
- the content type, or null
to exclude the content type headerpublic void setName(String name)
name
- public void setTransferEncoding(String transferEncoding)
transferEncoding
- the transfer encoding, or null
to exclude the transfer encoding headerpublic String getContentId()
Part
getContentId
in class Part
null
to exclude the content ID headerpublic void setContentId(String contentId)
Copyright © 2014. All Rights Reserved.