Modifier and Type | Field and Description |
---|---|
static StringCodec |
INSTANCE |
Constructor and Description |
---|
StringCodec() |
Modifier and Type | Method and Description |
---|---|
String |
decode(DataInput dataIn)
Read the entry from the RawContainer
|
String |
deepCopy(String source) |
void |
encode(String object,
DataOutput dataOut)
Write the payload of this entry to the RawContainer
|
int |
estimatedSize(String object) |
int |
getFixedSize() |
boolean |
isDeepCopySupported() |
boolean |
isEstimatedSizeSupported() |
public static final StringCodec INSTANCE
public void encode(String object, DataOutput dataOut) throws IOException
encode
in interface Codec<String>
object
- dataOut
- IOException
public String decode(DataInput dataIn) throws IOException
decode
in interface Codec<String>
dataIn
- IOException
public int getFixedSize()
getFixedSize
in interface Codec<String>
public boolean isDeepCopySupported()
isDeepCopySupported
in interface Codec<String>
Codec.deepCopy(Object)
operations is supported.public boolean isEstimatedSizeSupported()
isEstimatedSizeSupported
in interface Codec<String>
Codec.estimatedSize(Object)
operation is supported.public int estimatedSize(String object)
estimatedSize
in interface Codec<String>
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.