public class ByteArrayInputStreamBody
extends org.apache.http.entity.mime.content.InputStreamBody
| Constructor and Description |
|---|
ByteArrayInputStreamBody(java.io.ByteArrayInputStream in,
java.lang.String mimeType,
java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
void |
writeTo(java.io.OutputStream out) |
getCharset, getFilename, getInputStream, getTransferEncoding, writeTopublic ByteArrayInputStreamBody(java.io.ByteArrayInputStream in,
java.lang.String mimeType,
java.lang.String filename)
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
writeTo in class org.apache.http.entity.mime.content.InputStreamBodyjava.io.IOExceptionInputStreamBody.writeTo(java.io.OutputStream)public long getContentLength()
getContentLength in interface org.apache.james.mime4j.descriptor.ContentDescriptorgetContentLength in class org.apache.http.entity.mime.content.InputStreamBodyInputStreamBody.getContentLength()