Class Symbol8TypeDecoder
java.lang.Object
org.apache.qpid.protonj2.codec.decoders.AbstractPrimitiveTypeDecoder<Symbol>
org.apache.qpid.protonj2.codec.decoders.primitives.AbstractSymbolTypeDecoder
org.apache.qpid.protonj2.codec.decoders.primitives.Symbol8TypeDecoder
- All Implemented Interfaces:
SymbolTypeDecoder,PrimitiveTypeDecoder<Symbol>,StreamTypeDecoder<Symbol>,TypeDecoder<Symbol>
Decoder of AMQP Symbol values from a byte stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intreadSize(InputStream stream) Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.protected intreadSize(ProtonBuffer buffer) Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.Methods inherited from class org.apache.qpid.protonj2.codec.decoders.primitives.AbstractSymbolTypeDecoder
readString, readString, readValue, readValue, skipValue, skipValueMethods inherited from class org.apache.qpid.protonj2.codec.decoders.AbstractPrimitiveTypeDecoder
isArrayType, isJavaPrimitive, readArrayElements, readArrayElementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.codec.decoders.PrimitiveTypeDecoder
isJavaPrimitiveMethods inherited from interface org.apache.qpid.protonj2.codec.StreamTypeDecoder
getTypeClass, isArrayType, readArrayElementsMethods inherited from interface org.apache.qpid.protonj2.codec.decoders.primitives.SymbolTypeDecoder
getTypeClassMethods inherited from interface org.apache.qpid.protonj2.codec.TypeDecoder
isArrayType, readArrayElements
-
Constructor Details
-
Symbol8TypeDecoder
public Symbol8TypeDecoder()
-
-
Method Details
-
getTypeCode
public int getTypeCode()- Returns:
- the AMQP Encoding Code that this primitive type decoder can read.
-
readSize
Description copied from class:AbstractSymbolTypeDecoderSubclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.- Specified by:
readSizein classAbstractSymbolTypeDecoder- Parameters:
buffer- The buffer to read the size from.- Returns:
- the number of bytes that make up the encoded Symbol value.
- Throws:
DecodeException- if an error occurs reading the size value.
-
readSize
Description copied from class:AbstractSymbolTypeDecoderSubclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.- Specified by:
readSizein classAbstractSymbolTypeDecoder- Parameters:
stream- The InputStream to read the size from.- Returns:
- the number of bytes that make up the encoded Symbol value.
- Throws:
DecodeException- if an error occurs reading the size value.
-