org.apache.qpid.proton.codec
Class ShortType.ShortEncoding

java.lang.Object
  extended by org.apache.qpid.proton.codec.ShortType.ShortEncoding
All Implemented Interfaces:
PrimitiveTypeEncoding<Short>, TypeConstructor<Short>, TypeEncoding<Short>
Enclosing class:
ShortType

public class ShortType.ShortEncoding
extends Object


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

Constructor Detail

ShortType.ShortEncoding

public ShortType.ShortEncoding(EncoderImpl encoder,
                               DecoderImpl decoder)
Method Detail

getFixedSize

protected int getFixedSize()

getEncodingCode

public byte getEncodingCode()
Specified by:
getEncodingCode in interface PrimitiveTypeEncoding<Short>

getType

public ShortType getType()

writeValue

public void writeValue(Short val)

writeValue

public void writeValue(short val)

write

public void write(short s)

encodesSuperset

public boolean encodesSuperset(TypeEncoding<Short> encoding)

readValue

public Short readValue()

readPrimitiveValue

public short readPrimitiveValue()

encodesJavaPrimitive

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

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()


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