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