public class ScalarDescriptorSerializer extends java.lang.Object implements DescriptorSerializer
DescriptorSerializer.Factory<T extends DescriptorSerializer>
Modifier and Type | Field and Description |
---|---|
(package private) static DescriptorSerializer |
INSTANCE |
static DescriptorSerializer.Factory |
INSTANCE_FACTORY |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
decode(MultiFieldDecoder fieldDecoder,
DataValueDescriptor destDvd,
boolean desc) |
void |
decodeDirect(DataValueDescriptor destDvd,
byte[] data,
int offset,
int length,
boolean desc) |
void |
encode(MultiFieldEncoder fieldEncoder,
DataValueDescriptor dvd,
boolean desc) |
byte[] |
encodeDirect(DataValueDescriptor dvd,
boolean desc) |
boolean |
isDoubleType() |
boolean |
isFloatType() |
boolean |
isScalarType() |
static final DescriptorSerializer INSTANCE
public static final DescriptorSerializer.Factory INSTANCE_FACTORY
public void encode(MultiFieldEncoder fieldEncoder, DataValueDescriptor dvd, boolean desc) throws StandardException
encode
in interface DescriptorSerializer
StandardException
public byte[] encodeDirect(DataValueDescriptor dvd, boolean desc) throws StandardException
encodeDirect
in interface DescriptorSerializer
StandardException
public void decode(MultiFieldDecoder fieldDecoder, DataValueDescriptor destDvd, boolean desc) throws StandardException
decode
in interface DescriptorSerializer
StandardException
public void decodeDirect(DataValueDescriptor destDvd, byte[] data, int offset, int length, boolean desc) throws StandardException
decodeDirect
in interface DescriptorSerializer
StandardException
public boolean isScalarType()
isScalarType
in interface DescriptorSerializer
public boolean isFloatType()
isFloatType
in interface DescriptorSerializer
public boolean isDoubleType()
isDoubleType
in interface DescriptorSerializer
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException