com.jdroid.java.http.apache.post
Class ByteArrayInputStreamBody

java.lang.Object
  extended by org.apache.james.mime4j.message.SingleBody
      extended by org.apache.http.entity.mime.content.AbstractContentBody
          extended by org.apache.http.entity.mime.content.InputStreamBody
              extended by com.jdroid.java.http.apache.post.ByteArrayInputStreamBody
All Implemented Interfaces:
org.apache.http.entity.mime.content.ContentBody, org.apache.james.mime4j.descriptor.ContentDescriptor, org.apache.james.mime4j.message.Body, org.apache.james.mime4j.message.Disposable

public class ByteArrayInputStreamBody
extends org.apache.http.entity.mime.content.InputStreamBody


Constructor Summary
ByteArrayInputStreamBody(ByteArrayInputStream in, String mimeType, String filename)
           
 
Method Summary
 long getContentLength()
           
 void writeTo(OutputStream out)
           
 
Methods inherited from class org.apache.http.entity.mime.content.InputStreamBody
getCharset, getFilename, getInputStream, getTransferEncoding, writeTo
 
Methods inherited from class org.apache.http.entity.mime.content.AbstractContentBody
dispose, getContentTypeParameters, getMediaType, getMimeType, getParent, getSubType, setParent
 
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
 

Constructor Detail

ByteArrayInputStreamBody

public ByteArrayInputStreamBody(ByteArrayInputStream in,
                                String mimeType,
                                String filename)
Method Detail

writeTo

public void writeTo(OutputStream out)
             throws IOException
Overrides:
writeTo in class org.apache.http.entity.mime.content.InputStreamBody
Throws:
IOException
See Also:
InputStreamBody.writeTo(java.io.OutputStream)

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.james.mime4j.descriptor.ContentDescriptor
Overrides:
getContentLength in class org.apache.http.entity.mime.content.InputStreamBody
See Also:
InputStreamBody.getContentLength()


Copyright © 2014. All rights reserved.