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
ConstructorsConstructorDescriptionUTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanencodesSuperset(org.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer> encoding) intorg.apache.qpid.proton.codec.DecoderImplorg.apache.qpid.proton.codec.EncoderImplabstract intorg.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>getType()Class<org.fusesource.hawtbuf.UTF8Buffer>intgetValueSize(org.fusesource.hawtbuf.UTF8Buffer value) booleanorg.fusesource.hawtbuf.UTF8Buffervoidvoidabstract 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.proton.codec.PrimitiveTypeEncoding
getEncodingCode
-
Constructor Details
-
UTF8BufferEncoding
public UTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder)
-
-
Method Details
-
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
- 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()
-