org.apache.qpid.proton.codec
Class ShortType.ShortEncoding
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShortType.ShortEncoding
public ShortType.ShortEncoding(EncoderImpl encoder,
DecoderImpl decoder)
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.