public abstract class PartBase extends Part
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES| 构造器和说明 |
|---|
PartBase(java.lang.String name,
java.lang.String contentType,
java.lang.String charSet,
java.lang.String transferEncoding)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getCharSet()
Return the character encoding of this part.
|
java.lang.String |
getContentType()
Returns the content category of this part.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getTransferEncoding()
Returns the transfer encoding of this part.
|
void |
setCharSet(java.lang.String charSet)
Sets the character encoding.
|
void |
setContentType(java.lang.String contentType)
Sets the content category.
|
void |
setName(java.lang.String name)
Sets the part name.
|
void |
setTransferEncoding(java.lang.String transferEncoding)
Sets the transfer encoding.
|
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, lengthOfData, send, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toStringpublic PartBase(java.lang.String name,
java.lang.String contentType,
java.lang.String charSet,
java.lang.String transferEncoding)
name - The name of the partcontentType - The content category, or nullcharSet - The character encoding, or nulltransferEncoding - The transfer encoding, or nullpublic java.lang.String getName()
getName 在类中 PartPart.getName()public java.lang.String getContentType()
getContentType 在类中 Partpublic java.lang.String getCharSet()
getCharSet 在类中 Partpublic java.lang.String getTransferEncoding()
getTransferEncoding 在类中 Partpublic void setCharSet(java.lang.String charSet)
charSet - the character encoding, or null to exclude the character
encoding headerpublic void setContentType(java.lang.String contentType)
contentType - the content category, or null to exclude the content category headerpublic void setName(java.lang.String name)
name - public void setTransferEncoding(java.lang.String transferEncoding)
transferEncoding - the transfer encoding, or null to exclude the
transfer encoding header