Class UTF8BufferType.LargeUTF8BufferEncoding
- java.lang.Object
-
- org.apache.activemq.transport.amqp.message.UTF8BufferType.UTF8BufferEncoding
-
- org.apache.activemq.transport.amqp.message.UTF8BufferType.LargeUTF8BufferEncoding
-
- 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
public class UTF8BufferType.LargeUTF8BufferEncoding extends UTF8BufferType.UTF8BufferEncoding
-
-
Constructor Summary
Constructors Constructor Description LargeUTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getEncodingCode()
int
getSizeBytes()
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.-
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
-
-
-
-
Method Detail
-
getEncodingCode
public byte getEncodingCode()
-
getSizeBytes
public int getSizeBytes()
- Specified by:
getSizeBytes
in 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.UTF8BufferEncoding
Write the size of the buffer using the appropriate type (byte or int) depending on the encoding type being used.- Specified by:
writeSize
in classUTF8BufferType.UTF8BufferEncoding
- Parameters:
value
- The UTF8Buffer value that is being encoded.
-
-