public class Binary
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Binary(byte[] data)
Creates a Binary object with the default binary type of 0
|
Binary(byte type,
byte[] data)
Creates a Binary with the specified type and data.
|
public Binary(byte[] data)
data - raw datapublic Binary(byte type,
byte[] data)
type - the binary typedata - the binary datapublic byte getType()
public byte[] getData()
public int length()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object