org.apache.james.mime4j.message
Class BinaryBody

java.lang.Object
  extended by org.apache.james.mime4j.message.SingleBody
      extended by org.apache.james.mime4j.message.BinaryBody
All Implemented Interfaces:
Body, Disposable

public abstract class BinaryBody
extends SingleBody

A body containing binary data.


Constructor Summary
protected BinaryBody()
          Sole constructor.
 
Method Summary
abstract  java.io.InputStream getInputStream()
          Gets a InputStream which reads the bytes of the body.
 
Methods inherited from class org.apache.james.mime4j.message.SingleBody
copy, dispose, getParent, setParent, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryBody

protected BinaryBody()
Sole constructor.

Method Detail

getInputStream

public abstract java.io.InputStream getInputStream()
                                            throws java.io.IOException
Gets a InputStream which reads the bytes of the body.

Returns:
the stream, transfer decoded
Throws:
java.io.IOException - on I/O errors.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.