|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.entity.mime.content.AbstractContentBody
org.apache.http.entity.mime.content.FileBody
public class FileBody
Binary body part backed by a file.
MultipartEntityBuilder| Constructor Summary | |
|---|---|
FileBody(File file)
|
|
FileBody(File file,
ContentType contentType)
|
|
FileBody(File file,
ContentType contentType,
String filename)
|
|
FileBody(File file,
String mimeType)
Deprecated. (4.3) use FileBody(File, ContentType)
or MultipartEntityBuilder |
|
FileBody(File file,
String mimeType,
String charset)
Deprecated. (4.3) use FileBody(File, ContentType)
or MultipartEntityBuilder |
|
FileBody(File file,
String filename,
String mimeType,
String charset)
Deprecated. (4.3) use FileBody(File, ContentType, String)
or MultipartEntityBuilder |
|
| Method Summary | |
|---|---|
long |
getContentLength()
Returns the body descriptors content-length. |
File |
getFile()
|
String |
getFilename()
|
InputStream |
getInputStream()
|
String |
getTransferEncoding()
Returns the body descriptors transfer encoding. |
void |
writeTo(OutputStream out)
|
| Methods inherited from class org.apache.http.entity.mime.content.AbstractContentBody |
|---|
getCharset, getContentType, getMediaType, getMimeType, getSubType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public FileBody(File file,
String filename,
String mimeType,
String charset)
FileBody(File, ContentType, String)
or MultipartEntityBuilder
@Deprecated
public FileBody(File file,
String mimeType,
String charset)
FileBody(File, ContentType)
or MultipartEntityBuilder
@Deprecated
public FileBody(File file,
String mimeType)
FileBody(File, ContentType)
or MultipartEntityBuilder
public FileBody(File file)
public FileBody(File file,
ContentType contentType,
String filename)
public FileBody(File file,
ContentType contentType)
| Method Detail |
|---|
public InputStream getInputStream()
throws IOException
IOException
public void writeTo(OutputStream out)
throws IOException
IOExceptionpublic String getTransferEncoding()
ContentDescriptor
public long getContentLength()
ContentDescriptor
public String getFilename()
public File getFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||