Package org.apache.qpid.proton.codec
Class ByteType.ByteEncoding
- java.lang.Object
-
- org.apache.qpid.proton.codec.ByteType.ByteEncoding
-
- All Implemented Interfaces:
PrimitiveTypeEncoding<java.lang.Byte>
,TypeConstructor<java.lang.Byte>
,TypeEncoding<java.lang.Byte>
- Enclosing class:
- ByteType
public class ByteType.ByteEncoding extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ByteEncoding(EncoderImpl encoder, DecoderImpl decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
encodesJavaPrimitive()
boolean
encodesSuperset(TypeEncoding<java.lang.Byte> encoding)
int
getConstructorSize()
protected DecoderImpl
getDecoder()
protected EncoderImpl
getEncoder()
byte
getEncodingCode()
protected int
getFixedSize()
ByteType
getType()
java.lang.Class<T>
getTypeClass()
int
getValueSize(T val)
boolean
isFixedSizeVal()
byte
readPrimitiveValue()
java.lang.Byte
readValue()
void
skipValue()
void
write(byte val)
void
writeConstructor()
void
writeValue(byte val)
void
writeValue(java.lang.Byte val)
-
-
-
Constructor Detail
-
ByteEncoding
public ByteEncoding(EncoderImpl encoder, DecoderImpl decoder)
-
-
Method Detail
-
getFixedSize
protected int getFixedSize()
-
getEncodingCode
public byte getEncodingCode()
- Specified by:
getEncodingCode
in interfacePrimitiveTypeEncoding<java.lang.Byte>
-
getType
public ByteType getType()
-
writeValue
public void writeValue(java.lang.Byte val)
-
write
public void write(byte val)
-
writeValue
public void writeValue(byte val)
-
encodesSuperset
public boolean encodesSuperset(TypeEncoding<java.lang.Byte> encoding)
-
readValue
public java.lang.Byte readValue()
-
readPrimitiveValue
public byte readPrimitiveValue()
-
encodesJavaPrimitive
public boolean encodesJavaPrimitive()
- Specified by:
encodesJavaPrimitive
in interfaceTypeConstructor<java.lang.Byte>
- Specified by:
encodesJavaPrimitive
in interfaceTypeEncoding<java.lang.Byte>
-
isFixedSizeVal
public final boolean isFixedSizeVal()
-
getValueSize
public final int getValueSize(T val)
-
skipValue
public final void skipValue()
-
writeConstructor
public final void writeConstructor()
- Specified by:
writeConstructor
in interfacePrimitiveTypeEncoding<T>
- Specified by:
writeConstructor
in interfaceTypeEncoding<T>
-
getConstructorSize
public int getConstructorSize()
- Specified by:
getConstructorSize
in interfacePrimitiveTypeEncoding<T>
- Specified by:
getConstructorSize
in interfaceTypeEncoding<T>
-
getEncoder
protected EncoderImpl getEncoder()
-
getTypeClass
public java.lang.Class<T> getTypeClass()
- Specified by:
getTypeClass
in interfaceTypeConstructor<T>
-
getDecoder
protected DecoderImpl getDecoder()
-
-