org.apache.qpid.proton.codec
Class UnsignedByteType.UnsignedByteEncoding

java.lang.Object
  extended by org.apache.qpid.proton.codec.UnsignedByteType.UnsignedByteEncoding
All Implemented Interfaces:
PrimitiveTypeEncoding<UnsignedByte>, TypeConstructor<UnsignedByte>, TypeEncoding<UnsignedByte>
Enclosing class:
UnsignedByteType

public class UnsignedByteType.UnsignedByteEncoding
extends Object


Constructor Summary
UnsignedByteType.UnsignedByteEncoding(EncoderImpl encoder, DecoderImpl decoder)
           
 
Method Summary
 boolean encodesJavaPrimitive()
           
 boolean encodesSuperset(TypeEncoding<UnsignedByte> encoding)
           
 int getConstructorSize()
           
protected  DecoderImpl getDecoder()
           
protected  EncoderImpl getEncoder()
           
 byte getEncodingCode()
           
protected  int getFixedSize()
           
 UnsignedByteType getType()
           
 Class<T> getTypeClass()
           
 int getValueSize(T val)
           
 boolean isFixedSizeVal()
           
 UnsignedByte readValue()
           
 void writeConstructor()
           
 void writeValue(UnsignedByte val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsignedByteType.UnsignedByteEncoding

public UnsignedByteType.UnsignedByteEncoding(EncoderImpl encoder,
                                             DecoderImpl decoder)
Method Detail

getFixedSize

protected int getFixedSize()

getEncodingCode

public byte getEncodingCode()
Specified by:
getEncodingCode in interface PrimitiveTypeEncoding<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)

writeConstructor

public final void writeConstructor()
Specified by:
writeConstructor in interface PrimitiveTypeEncoding<T>
Specified by:
writeConstructor in interface TypeEncoding<T>

getConstructorSize

public int getConstructorSize()
Specified by:
getConstructorSize in interface PrimitiveTypeEncoding<T>
Specified by:
getConstructorSize in interface TypeEncoding<T>

getEncoder

protected EncoderImpl getEncoder()

getTypeClass

public Class<T> getTypeClass()
Specified by:
getTypeClass in interface TypeConstructor<T>

getDecoder

protected DecoderImpl getDecoder()

encodesJavaPrimitive

public boolean encodesJavaPrimitive()
Specified by:
encodesJavaPrimitive in interface TypeConstructor<T>
Specified by:
encodesJavaPrimitive in interface TypeEncoding<T>


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.