Class UTF8BufferType.UTF8BufferEncoding
- java.lang.Object
-
- org.apache.activemq.transport.amqp.message.UTF8BufferType.UTF8BufferEncoding
-
- All Implemented Interfaces:
org.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>,org.apache.qpid.proton.codec.TypeConstructor<org.fusesource.hawtbuf.UTF8Buffer>,org.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
- Direct Known Subclasses:
UTF8BufferType.LargeUTF8BufferEncoding,UTF8BufferType.SmallUTF8BufferEncoding
- Enclosing class:
- UTF8BufferType
public abstract class UTF8BufferType.UTF8BufferEncoding extends Object implements org.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
-
Constructor Summary
Constructors Constructor Description UTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanencodesJavaPrimitive()booleanencodesSuperset(org.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer> encoding)intgetConstructorSize()org.apache.qpid.proton.codec.DecoderImplgetDecoder()org.apache.qpid.proton.codec.EncoderImplgetEncoder()abstract intgetSizeBytes()org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>getType()Class<org.fusesource.hawtbuf.UTF8Buffer>getTypeClass()intgetValueSize(org.fusesource.hawtbuf.UTF8Buffer value)booleanisFixedSizeVal()org.fusesource.hawtbuf.UTF8BufferreadValue()voidskipValue()voidwriteConstructor()abstract voidwriteSize(org.fusesource.hawtbuf.UTF8Buffer value)Write the size of the buffer using the appropriate type (byte or int) depending on the encoding type being used.voidwriteValue(org.fusesource.hawtbuf.UTF8Buffer value)
-
-
-
Method Detail
-
getConstructorSize
public int getConstructorSize()
- Specified by:
getConstructorSizein interfaceorg.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>- Specified by:
getConstructorSizein interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
isFixedSizeVal
public boolean isFixedSizeVal()
- Specified by:
isFixedSizeValin interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
encodesJavaPrimitive
public boolean encodesJavaPrimitive()
- Specified by:
encodesJavaPrimitivein interfaceorg.apache.qpid.proton.codec.TypeConstructor<org.fusesource.hawtbuf.UTF8Buffer>- Specified by:
encodesJavaPrimitivein interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
getSizeBytes
public abstract int getSizeBytes()
- Returns:
- the number of bytes the size portion of the encoded value requires.
-
writeConstructor
public void writeConstructor()
- Specified by:
writeConstructorin interfaceorg.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>- Specified by:
writeConstructorin interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
writeValue
public void writeValue(org.fusesource.hawtbuf.UTF8Buffer value)
- Specified by:
writeValuein interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
writeSize
public abstract void writeSize(org.fusesource.hawtbuf.UTF8Buffer value)
Write the size of the buffer using the appropriate type (byte or int) depending on the encoding type being used.- Parameters:
value- The UTF8Buffer value that is being encoded.
-
getValueSize
public int getValueSize(org.fusesource.hawtbuf.UTF8Buffer value)
- Specified by:
getValueSizein interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
getTypeClass
public Class<org.fusesource.hawtbuf.UTF8Buffer> getTypeClass()
- Specified by:
getTypeClassin interfaceorg.apache.qpid.proton.codec.TypeConstructor<org.fusesource.hawtbuf.UTF8Buffer>
-
getType
public org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer> getType()
- Specified by:
getTypein interfaceorg.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>- Specified by:
getTypein interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
encodesSuperset
public boolean encodesSuperset(org.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer> encoding)
- Specified by:
encodesSupersetin interfaceorg.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
-
readValue
public org.fusesource.hawtbuf.UTF8Buffer readValue()
- Specified by:
readValuein interfaceorg.apache.qpid.proton.codec.TypeConstructor<org.fusesource.hawtbuf.UTF8Buffer>
-
skipValue
public void skipValue()
- Specified by:
skipValuein interfaceorg.apache.qpid.proton.codec.TypeConstructor<org.fusesource.hawtbuf.UTF8Buffer>
-
getDecoder
public org.apache.qpid.proton.codec.DecoderImpl getDecoder()
-
getEncoder
public org.apache.qpid.proton.codec.EncoderImpl getEncoder()
-
-