public enum SnappyStringMarshaller extends Enum<SnappyStringMarshaller> implements CompactBytesMarshaller<CharSequence>
| Enum Constant and Description |
|---|
INSTANCE |
BYTE_BUFFER_CODE, CLASS_CODE, DATE_CODE, DOUBLE_CODE, INT_CODE, LIST_CODE, LONG_CODE, MAP_CODE, SET_CODE, STRING_CODE, STRINGZ_CODE, STRINGZ_MAP_CODE| Modifier and Type | Method and Description |
|---|---|
net.openhft.lang.io.serialization.impl.SnappyStringMarshaller.ThreadLocals |
acquireThreadLocals() |
byte |
code() |
String |
read(Bytes bytes)
Reads and returns an object from
bytes. |
String |
read(Bytes bytes,
CharSequence ignored)
Reads and returns an object from
bytes, reusing the given object, if possible. |
static SnappyStringMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnappyStringMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(Bytes bytes,
CharSequence s)
Write the object out to the
bytes. |
public static final SnappyStringMarshaller INSTANCE
public static SnappyStringMarshaller[] values()
for (SnappyStringMarshaller c : SnappyStringMarshaller.values()) System.out.println(c);
public static SnappyStringMarshaller 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 byte code()
code in interface CompactBytesMarshaller<CharSequence>public net.openhft.lang.io.serialization.impl.SnappyStringMarshaller.ThreadLocals acquireThreadLocals()
public void write(Bytes bytes, CharSequence s)
BytesMarshallerbytes.write in interface BytesMarshaller<CharSequence>bytes - to write tos - the object to writepublic String read(Bytes bytes)
BytesMarshallerbytes.read in interface BytesMarshaller<CharSequence>bytes - to readpublic String read(Bytes bytes, @Nullable CharSequence ignored)
BytesMarshallerbytes, reusing the given object, if possible.read in interface BytesMarshaller<CharSequence>bytes - to readignored - an object to reuse, if possible. null could be passed, in this case
a new object should be allocated anyway.Copyright © 2019. All rights reserved.