Version: 1.1.1

org.inb.biomoby.shared.datatypes
Class MobyBinary

java.lang.Object
  extended by org.inb.biomoby.shared.message.AbstractMobyElement
      extended by org.inb.biomoby.shared.message.AbstractMobyObject
          extended by org.inb.biomoby.shared.datatypes.MobyBinary
All Implemented Interfaces:
Serializable, MobyPrimitive

public class MobyBinary
extends AbstractMobyObject
implements MobyPrimitive, Serializable

This class is a not standard Moby primitive type. It is encoded as a base64 binary or as a XOP attachment.

Author:
Dmitry Repchevsky
See Also:
Serialized Form

Constructor Summary
MobyBinary(byte[] data)
           
MobyBinary(InputStream stream)
           
 
Method Summary
 byte[] getBytes()
           
 InputStream getInputStream()
           
 void setBytes(byte[] data)
           
 void setInputStream(InputStream stream)
           
 
Methods inherited from class org.inb.biomoby.shared.message.AbstractMobyObject
getMobyId, getNamespace, setMobyId, setNamespace, toString
 
Methods inherited from class org.inb.biomoby.shared.message.AbstractMobyElement
getArticleName, setArticleName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobyBinary

public MobyBinary(byte[] data)

MobyBinary

public MobyBinary(InputStream stream)
Method Detail

getBytes

public byte[] getBytes()
                throws IOException
Throws:
IOException

setBytes

public void setBytes(byte[] data)
              throws IOException
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

setInputStream

public void setInputStream(InputStream stream)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010