public class ByteType.ByteEncoding extends Object
Constructor and Description |
---|
ByteEncoding(EncoderImpl encoder,
DecoderImpl decoder) |
Modifier and Type | Method and Description |
---|---|
boolean |
encodesJavaPrimitive() |
boolean |
encodesSuperset(TypeEncoding<Byte> encoding) |
int |
getConstructorSize() |
protected DecoderImpl |
getDecoder() |
protected EncoderImpl |
getEncoder() |
byte |
getEncodingCode() |
protected int |
getFixedSize() |
ByteType |
getType() |
Class<T> |
getTypeClass() |
int |
getValueSize(T val) |
boolean |
isFixedSizeVal() |
byte |
readPrimitiveValue() |
Byte |
readValue() |
void |
write(byte val) |
void |
writeConstructor() |
void |
writeValue(byte val) |
void |
writeValue(Byte val) |
public ByteEncoding(EncoderImpl encoder, DecoderImpl decoder)
protected int getFixedSize()
public byte getEncodingCode()
getEncodingCode
in interface PrimitiveTypeEncoding<Byte>
public ByteType getType()
public void writeValue(Byte val)
public void write(byte val)
public void writeValue(byte val)
public boolean encodesSuperset(TypeEncoding<Byte> encoding)
public Byte readValue()
public byte readPrimitiveValue()
public boolean encodesJavaPrimitive()
encodesJavaPrimitive
in interface TypeConstructor<Byte>
encodesJavaPrimitive
in interface TypeEncoding<Byte>
public final boolean isFixedSizeVal()
public final int getValueSize(T val)
public final void writeConstructor()
writeConstructor
in interface PrimitiveTypeEncoding<T>
writeConstructor
in interface TypeEncoding<T>
public int getConstructorSize()
getConstructorSize
in interface PrimitiveTypeEncoding<T>
getConstructorSize
in interface TypeEncoding<T>
protected EncoderImpl getEncoder()
public Class<T> getTypeClass()
getTypeClass
in interface TypeConstructor<T>
protected DecoderImpl getDecoder()
Copyright © 2016 The Apache Software Foundation. All rights reserved.