Class UTF8BufferType.SmallUTF8BufferEncoding
java.lang.Object
org.apache.activemq.transport.amqp.message.UTF8BufferType.UTF8BufferEncoding
org.apache.activemq.transport.amqp.message.UTF8BufferType.SmallUTF8BufferEncoding
- 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>
- Enclosing class:
- UTF8BufferType
-
Constructor Summary
ConstructorsConstructorDescriptionSmallUTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder) -
Method Summary
Modifier and TypeMethodDescriptionbyteintvoidwriteSize(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.Methods inherited from class org.apache.activemq.transport.amqp.message.UTF8BufferType.UTF8BufferEncoding
encodesJavaPrimitive, encodesSuperset, getConstructorSize, getDecoder, getEncoder, getType, getTypeClass, getValueSize, isFixedSizeVal, readValue, skipValue, writeConstructor, writeValue
-
Constructor Details
-
SmallUTF8BufferEncoding
public SmallUTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder)
-
-
Method Details
-
getEncodingCode
public byte getEncodingCode() -
getSizeBytes
public int getSizeBytes()- Specified by:
getSizeBytesin classUTF8BufferType.UTF8BufferEncoding- Returns:
- the number of bytes the size portion of the encoded value requires.
-
writeSize
public void writeSize(org.fusesource.hawtbuf.UTF8Buffer value) Description copied from class:UTF8BufferType.UTF8BufferEncodingWrite the size of the buffer using the appropriate type (byte or int) depending on the encoding type being used.- Specified by:
writeSizein classUTF8BufferType.UTF8BufferEncoding- Parameters:
value- The UTF8Buffer value that is being encoded.
-