org.apache.http.entity.mime.content
Class InputStreamBody
java.lang.Object
org.apache.james.mime4j.message.SingleBody
org.apache.http.entity.mime.content.AbstractContentBody
org.apache.http.entity.mime.content.InputStreamBody
- All Implemented Interfaces:
- ContentBody, ContentDescriptor, Body, Disposable
@NotThreadSafe
public class InputStreamBody
- extends AbstractContentBody
- Since:
- 4.0
Methods inherited from class org.apache.james.mime4j.message.SingleBody |
copy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamBody
public InputStreamBody(InputStream in,
String mimeType,
String filename)
InputStreamBody
public InputStreamBody(InputStream in,
String filename)
getInputStream
public InputStream getInputStream()
writeTo
@Deprecated
public void writeTo(OutputStream out,
int mode)
throws IOException
- Deprecated. use
writeTo(OutputStream)
- Throws:
IOException
writeTo
public void writeTo(OutputStream out)
throws IOException
- Specified by:
writeTo
in class SingleBody
- Throws:
IOException
getTransferEncoding
public String getTransferEncoding()
getCharset
public String getCharset()
getContentLength
public long getContentLength()
getFilename
public String getFilename()
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.