public class FileObjectPart
extends org.apache.commons.httpclient.methods.multipart.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.
|
protected static String |
FILE_NAME
Attachment's file name
|
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
Constructor and Description |
---|
FileObjectPart(FileObject partSource) |
FileObjectPart(FileObject partSource,
String contentType,
String charset) |
FileObjectPart(String name,
FileObject partSource,
String contentType,
String charset) |
Modifier and Type | Method and Description |
---|---|
protected long |
lengthOfData() |
protected void |
sendData(OutputStream out) |
protected void |
sendDispositionHeader(OutputStream out) |
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncoding
public static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CHARSET
public static final String DEFAULT_TRANSFER_ENCODING
protected static final String FILE_NAME
public FileObjectPart(FileObject partSource)
public FileObjectPart(FileObject partSource, String contentType, String charset)
public FileObjectPart(String name, FileObject partSource, String contentType, String charset)
protected void sendDispositionHeader(OutputStream out) throws IOException
sendDispositionHeader
in class org.apache.commons.httpclient.methods.multipart.Part
IOException
protected long lengthOfData() throws IOException
lengthOfData
in class org.apache.commons.httpclient.methods.multipart.Part
IOException
protected void sendData(OutputStream out) throws IOException
sendData
in class org.apache.commons.httpclient.methods.multipart.Part
IOException
Copyright © 2006–2018 TinyGroup. All rights reserved.