public abstract class Binary extends Object
Constructor and Description |
---|
Binary() |
Modifier and Type | Method and Description |
---|---|
abstract int |
compareTo(Binary other) |
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(DataOutput out) |
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
IOException
public abstract void writeTo(DataOutput out) throws IOException
IOException
public abstract byte[] getBytes()
public abstract int compareTo(Binary other)
public abstract ByteBuffer toByteBuffer()
Copyright © 2015. All rights reserved.