public final class Binary
extends java.lang.Object
Constructor and Description |
---|
Binary(byte[] data) |
Binary(byte[] data,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
asByteBuffer() |
static Binary |
combine(java.util.Collection<Binary> binaries) |
static Binary |
copy(Binary source) |
static Binary |
create(java.nio.ByteBuffer buffer) |
static Binary |
create(ReadableBuffer buffer) |
boolean |
equals(java.lang.Object o) |
byte[] |
getArray() |
int |
getArrayOffset() |
int |
getLength() |
int |
hashCode() |
Binary |
subBinary(int offset,
int length) |
java.lang.String |
toString() |
public Binary(byte[] data)
public Binary(byte[] data, int offset, int length)
public java.nio.ByteBuffer asByteBuffer()
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int getArrayOffset()
public byte[] getArray()
public int getLength()
public java.lang.String toString()
toString
in class java.lang.Object
public Binary subBinary(int offset, int length)
public static Binary create(ReadableBuffer buffer)
public static Binary create(java.nio.ByteBuffer buffer)