public class BTreeRedirectMarshaller extends java.lang.Object implements Marshaller<BTreeRedirect>
| Modifier and Type | Field and Description |
|---|---|
static BTreeRedirectMarshaller |
INSTANCE
a reusable instance of this Marshaller
|
(package private) static int |
SIZE
fixed byte array size of 9 for serialized form
|
| Constructor and Description |
|---|
BTreeRedirectMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
BTreeRedirect |
deserialize(byte[] bytes) |
static boolean |
isRedirect(byte[] bites)
Checks to see if a byte[] contains a redirect.
|
byte[] |
serialize(BTreeRedirect redirect) |
static final int SIZE
public static final BTreeRedirectMarshaller INSTANCE
public final byte[] serialize(BTreeRedirect redirect) throws java.io.IOException
serialize in interface Marshaller<BTreeRedirect>java.io.IOExceptionMarshaller.serialize(Object)public final BTreeRedirect deserialize(byte[] bytes) throws java.io.IOException
deserialize in interface Marshaller<BTreeRedirect>java.io.IOExceptionMarshaller.deserialize(byte[])public static boolean isRedirect(byte[] bites)
bites - the bites to check for a redirect