public abstract class FileLikePart extends PartBase
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 |
---|
FileLikePart(java.lang.String name,
java.lang.String contentType,
java.nio.charset.Charset charset,
java.lang.String fileName,
java.lang.String contentId,
java.lang.String transfertEncoding)
FilePart Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName() |
java.lang.String |
toString() |
addCustomHeader, getCharset, getContentId, getContentType, getCustomHeaders, getDispositionType, getName, getTransferEncoding, setCustomHeaders, setDispositionType
public FileLikePart(java.lang.String name, java.lang.String contentType, java.nio.charset.Charset charset, java.lang.String fileName, java.lang.String contentId, java.lang.String transfertEncoding)
name
- the name for this partcontentType
- the content type for this part, if null
try to figure out from the fileName mime typecharset
- the charset encoding for this partfileName
- the fileNamecontentId
- the content idtransfertEncoding
- the transfer encodingCopyright © 2017. All Rights Reserved.