public class ContentTypeFilePart extends FilePart
FilePart that automatically determines the content type
of the file.DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING, FILE_NAMEBOUNDARY, 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| Constructor and Description |
|---|
ContentTypeFilePart(String name,
File file)
ContentTypeFilePart constructor.
|
ContentTypeFilePart(String name,
File file,
String charset)
ContentTypeFilePart constructor.
|
ContentTypeFilePart(String name,
PartSource partSource)
ContentTypeFilePart constructor.
|
ContentTypeFilePart(String name,
PartSource partSource,
String charset)
ContentTypeFilePart constructor.
|
ContentTypeFilePart(String name,
String fileName,
File file)
ContentTypeFilePart constructor.
|
ContentTypeFilePart(String name,
String fileName,
File file,
String charset)
ContentTypeFilePart constructor.
|
getSource, lengthOfData, sendData, sendDispositionHeadergetCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncodinggetBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, send, sendContentTypeHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toStringpublic ContentTypeFilePart(String name, PartSource partSource, String charset)
name - the name of the partpartSource - the source for this partcharset - the charset encoding for this part.public ContentTypeFilePart(String name, PartSource partSource)
name - the name of the partpartSource - the source for this partpublic ContentTypeFilePart(String name, File file) throws FileNotFoundException
name - the name of the partfile - the file to postFileNotFoundException - if the file does not existpublic ContentTypeFilePart(String name, File file, String charset) throws FileNotFoundException
name - the name of the partfile - the file to postcharset - the charset encoding for the fileFileNotFoundExceptionpublic ContentTypeFilePart(String name, String fileName, File file) throws FileNotFoundException
name - the name of the partfileName - the file namefile - the file to postFileNotFoundException - if the file does not existpublic ContentTypeFilePart(String name, String fileName, File file, String charset) throws FileNotFoundException
name - the name of the partfileName - the file namefile - the file to postcharset - the charset encoding for the fileFileNotFoundException - if the file does not existCopyright © 2012 Apache Software Foundation. All Rights Reserved.