public enum ByteArrayMarshaller extends Enum<ByteArrayMarshaller> implements BytesInterop<byte[]>, BytesReader<byte[]>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
hash(byte[] ba) |
byte[] |
read(Bytes bytes,
long size) |
byte[] |
read(Bytes bytes,
long size,
byte[] ba) |
long |
size(byte[] ba) |
boolean |
startsWith(Bytes bytes,
byte[] ba) |
static ByteArrayMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteArrayMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(Bytes bytes,
byte[] ba) |
public static final ByteArrayMarshaller INSTANCE
public static ByteArrayMarshaller[] values()
for (ByteArrayMarshaller c : ByteArrayMarshaller.values()) System.out.println(c);
public static ByteArrayMarshaller valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic long size(byte[] ba)
size
in interface BytesWriter<byte[]>
public boolean startsWith(Bytes bytes, byte[] ba)
startsWith
in interface BytesInterop<byte[]>
public long hash(byte[] ba)
hash
in interface BytesInterop<byte[]>
public void write(Bytes bytes, byte[] ba)
write
in interface BytesWriter<byte[]>
public byte[] read(Bytes bytes, long size)
read
in interface BytesReader<byte[]>
public byte[] read(Bytes bytes, long size, byte[] ba)
read
in interface BytesReader<byte[]>
Copyright © 2014. All rights reserved.