public class FilePart extends AbstractFilePart
DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODINGCHARSET_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 |
|---|
FilePart(String name,
File file) |
FilePart(String name,
File file,
String contentType) |
FilePart(String name,
File file,
String contentType,
Charset charset) |
FilePart(String name,
File file,
String contentType,
Charset charset,
String fileName) |
FilePart(String name,
File file,
String contentType,
Charset charset,
String fileName,
String contentId) |
FilePart(String name,
File file,
String contentType,
Charset charset,
String fileName,
String contentId,
String transferEncoding) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getDataLength() |
File |
getFile() |
protected void |
sendData(OutputStream out) |
long |
write(WritableByteChannel target,
byte[] boundary) |
generateFileEnd, generateFileStart, getFileName, getStalledTime, setFileName, setStalledTime, toString, visitDispositionHeadergetCharset, getContentId, getContentType, getDispositionType, getName, getTransferEncoding, length, setDispositionType, visitContentIdHeader, visitContentTypeHeader, visitEnd, visitEndOfHeader, visitStart, visitTransferEncodingHeader, writepublic FilePart(String name, File file, String contentType, Charset charset, String fileName)
public FilePart(String name, File file, String contentType, Charset charset, String fileName, String contentId)
protected void sendData(OutputStream out) throws IOException
sendData in class PartBaseIOExceptionprotected long getDataLength()
getDataLength in class PartBasepublic File getFile()
public long write(WritableByteChannel target, byte[] boundary) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.