public final class Bytes
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Bytes |
asByteBuffer(java.io.InputStream input) |
static Bytes |
asByteBuffer(java.lang.String string) |
static java.lang.String |
asString(Bytes buffer) |
static Bytes |
empty() |
static Bytes |
fromArray(byte[] array) |
java.nio.ByteBuffer |
getBuffer() |
boolean |
isEmpty() |
int |
size() |
byte[] |
toArray() |
public byte[] toArray()
public java.nio.ByteBuffer getBuffer()
public int size()
public boolean isEmpty()
public static Bytes empty()
public static Bytes fromArray(byte[] array)
public static Bytes asByteBuffer(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Bytes asByteBuffer(java.lang.String string)
public static java.lang.String asString(Bytes buffer)