public abstract class Binary extends Object
| Constructor and Description |
|---|
Binary() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Binary |
fromByteArray(byte[] value) |
static Binary |
fromByteArray(byte[] value,
int offset,
int length) |
static Binary |
fromByteBuffer(ByteBuffer value) |
static Binary |
fromString(String value) |
abstract byte[] |
getBytes() |
abstract int |
length() |
abstract ByteBuffer |
toByteBuffer() |
String |
toString() |
abstract String |
toStringUsingUTF8() |
abstract void |
writeTo(OutputStream out) |
public static final Binary EMPTY
public static Binary fromByteArray(byte[] value, int offset, int length)
public static Binary fromByteArray(byte[] value)
public static Binary fromByteBuffer(ByteBuffer value)
public abstract String toStringUsingUTF8()
public abstract int length()
public abstract void writeTo(OutputStream out) throws IOException
IOExceptionpublic abstract byte[] getBytes()
public abstract ByteBuffer toByteBuffer()
Copyright © 2013. All Rights Reserved.