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
-
Method Summary
Modifier and TypeMethodDescriptionint
protected int
readSize
(InputStream stream) Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.protected int
readSize
(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, skipValue
Methods inherited from class org.apache.qpid.protonj2.codec.decoders.AbstractPrimitiveTypeDecoder
isArrayType, isJavaPrimitive, readArrayElements, readArrayElements
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.qpid.protonj2.codec.decoders.PrimitiveTypeDecoder
isJavaPrimitive
Methods inherited from interface org.apache.qpid.protonj2.codec.StreamTypeDecoder
getTypeClass, isArrayType, readArrayElements
Methods inherited from interface org.apache.qpid.protonj2.codec.decoders.primitives.SymbolTypeDecoder
getTypeClass
Methods 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:AbstractSymbolTypeDecoder
Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.- Specified by:
readSize
in 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:AbstractSymbolTypeDecoder
Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.- Specified by:
readSize
in 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.
-