public class FilePart extends PartBase
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET
Default charset of file attachments.
|
static String |
DEFAULT_CONTENT_TYPE
Default content encoding of file attachments.
|
static String |
DEFAULT_TRANSFER_ENCODING
Default transfer encoding of file attachments.
|
| Constructor and Description |
|---|
FilePart(String name,
File file)
FilePart Constructor.
|
FilePart(String name,
File file,
String contentType,
String charset)
FilePart Constructor.
|
FilePart(String name,
PartSource partSource)
FilePart Constructor.
|
FilePart(String name,
PartSource partSource,
String contentType,
String charset)
FilePart Constructor.
|
FilePart(String name,
String fileName,
File file)
FilePart Constructor.
|
FilePart(String name,
String fileName,
File file,
String contentType,
String charset)
FilePart Constructor.
|
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncodinggetBoundary, getLengthOfParts, getLengthOfParts, isRepeatable, length, send, sendParts, sendParts, toStringpublic static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CHARSET
public static final String DEFAULT_TRANSFER_ENCODING
public FilePart(String name, PartSource partSource, String contentType, String charset)
public FilePart(String name, PartSource partSource)
name - the name for this partpartSource - the source for this partpublic FilePart(String name, File file) throws FileNotFoundException
name - the name of the file partfile - the file to postFileNotFoundException - if the file is not a normal
file or if it is not readable.public FilePart(String name, File file, String contentType, String charset) throws FileNotFoundException
name - the name of the file partfile - the file to postcontentType - the content type for this part, if null the
default is usedcharset - the charset encoding for this part, if null the
default is usedFileNotFoundException - if the file is not a normal
file or if it is not readable.public FilePart(String name, String fileName, File file) throws FileNotFoundException
name - the name of the file partfileName - the file namefile - the file to postFileNotFoundException - if the file is not a normal
file or if it is not readable.public FilePart(String name, String fileName, File file, String contentType, String charset) throws FileNotFoundException
name - the name of the file partfileName - the file namefile - the file to postcontentType - the content type for this part, if null the
default is usedcharset - the charset encoding for this part, if null the
default is usedFileNotFoundException - if the file is not a normal
file or if it is not readable.Copyright © 2010 - 2020 Adobe. All Rights Reserved