com.openexchange.messaging
Class ByteArrayContent

java.lang.Object
  extended by com.openexchange.messaging.ByteArrayContent
All Implemented Interfaces:
BinaryContent, MessagingContent, SimpleContent<java.io.InputStream>

public class ByteArrayContent
extends java.lang.Object
implements BinaryContent

ByteArrayContent

Author:
Francisco Laguna, Thorben Betten

Constructor Summary
ByteArrayContent(byte[] data)
           
 
Method Summary
 java.io.InputStream getData()
          Gets the data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayContent

public ByteArrayContent(byte[] data)
Method Detail

getData

public java.io.InputStream getData()
                            throws MessagingException
Description copied from interface: SimpleContent
Gets the data.

Specified by:
getData in interface SimpleContent<java.io.InputStream>
Returns:
The data
Throws:
MessagingException - If data cannot be returned