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>
public final class Symbol8TypeDecoder extends AbstractSymbolTypeDecoder
Decoder of AMQP Symbol values from a byte stream.
-
-
Constructor Summary
Constructors Constructor Description Symbol8TypeDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getTypeCode()
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
-
-
-
-
Method Detail
-
getTypeCode
public int getTypeCode()
- Returns:
- the AMQP Encoding Code that this primitive type decoder can read.
-
readSize
protected int readSize(ProtonBuffer buffer) throws DecodeException
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
protected int readSize(InputStream stream) throws DecodeException
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.
-
-