com.ca.commons.datamodel
Class DataModelBinaryValue

java.lang.Object
  extended by com.ca.commons.datamodel.DataModelBinaryValue

public final class DataModelBinaryValue
extends Object


Field Summary
static String OCTETSTREAM
           
 
Constructor Summary
DataModelBinaryValue(String mimeType, byte[] value)
           
DataModelBinaryValue(String mimeType, ByteBuffer value)
           
 
Method Summary
 com.ca.commons.util.ByteData byteData()
           
 boolean equals(Object o)
           
 String getMimeType()
           
 int getSize()
           
 byte[] getValue()
           
 void getValue(ByteBuffer buffer)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OCTETSTREAM

public static final String OCTETSTREAM
See Also:
Constant Field Values
Constructor Detail

DataModelBinaryValue

public DataModelBinaryValue(@NotNull
                            String mimeType,
                            @NotNull
                            byte[] value)

DataModelBinaryValue

public DataModelBinaryValue(@NotNull
                            String mimeType,
                            @NotNull
                            ByteBuffer value)
Method Detail

getMimeType

@NotNull
public String getMimeType()

getSize

public int getSize()

getValue

public void getValue(@NotNull
                     ByteBuffer buffer)

getValue

@NotNull
public byte[] getValue()

byteData

public com.ca.commons.util.ByteData byteData()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Created 2011-07-14 13:27 EST