Class Array32TypeDecoder
- java.lang.Object
-
- org.apache.qpid.protonj2.codec.decoders.AbstractPrimitiveTypeDecoder<Object>
-
- org.apache.qpid.protonj2.codec.decoders.primitives.AbstractArrayTypeDecoder
-
- org.apache.qpid.protonj2.codec.decoders.primitives.Array32TypeDecoder
-
- All Implemented Interfaces:
PrimitiveArrayTypeDecoder,PrimitiveTypeDecoder<Object>,StreamTypeDecoder<Object>,TypeDecoder<Object>
public final class Array32TypeDecoder extends AbstractArrayTypeDecoder
Decoder of AMQP Arrays from a byte stream.
-
-
Constructor Summary
Constructors Constructor Description Array32TypeDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetTypeCode()booleanisJavaPrimitive()protected intreadCount(InputStream stream)protected intreadCount(ProtonBuffer buffer)protected intreadSize(InputStream stream)protected intreadSize(ProtonBuffer buffer)-
Methods inherited from class org.apache.qpid.protonj2.codec.decoders.primitives.AbstractArrayTypeDecoder
getTypeClass, isArrayType, readValue, readValue, skipValue, skipValue
-
Methods inherited from class org.apache.qpid.protonj2.codec.decoders.AbstractPrimitiveTypeDecoder
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.StreamTypeDecoder
readArrayElements
-
Methods inherited from interface org.apache.qpid.protonj2.codec.TypeDecoder
readArrayElements
-
-
-
-
Method Detail
-
getTypeCode
public int getTypeCode()
- Returns:
- the AMQP Encoding Code that this primitive type decoder can read.
-
isJavaPrimitive
public boolean isJavaPrimitive()
- Specified by:
isJavaPrimitivein interfacePrimitiveTypeDecoder<Object>- Overrides:
isJavaPrimitivein classAbstractPrimitiveTypeDecoder<Object>- Returns:
- true if the type managed by this decoder is assignable to a Java primitive type.
-
readSize
protected int readSize(ProtonBuffer buffer) throws DecodeException
- Specified by:
readSizein classAbstractArrayTypeDecoder- Throws:
DecodeException
-
readCount
protected int readCount(ProtonBuffer buffer) throws DecodeException
- Specified by:
readCountin classAbstractArrayTypeDecoder- Throws:
DecodeException
-
readSize
protected int readSize(InputStream stream)
- Specified by:
readSizein classAbstractArrayTypeDecoder
-
readCount
protected int readCount(InputStream stream)
- Specified by:
readCountin classAbstractArrayTypeDecoder
-
-