Class Array32TypeDecoder
- java.lang.Object
-
- org.apache.qpid.protonj2.codec.decoders.AbstractPrimitiveTypeDecoder<java.lang.Object>
-
- org.apache.qpid.protonj2.codec.decoders.primitives.AbstractArrayTypeDecoder
-
- org.apache.qpid.protonj2.codec.decoders.primitives.Array32TypeDecoder
-
- All Implemented Interfaces:
PrimitiveArrayTypeDecoder,PrimitiveTypeDecoder<java.lang.Object>,StreamTypeDecoder<java.lang.Object>,TypeDecoder<java.lang.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(java.io.InputStream stream)protected intreadCount(ProtonBuffer buffer)protected intreadSize(java.io.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<java.lang.Object>- Overrides:
isJavaPrimitivein classAbstractPrimitiveTypeDecoder<java.lang.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(java.io.InputStream stream)
- Specified by:
readSizein classAbstractArrayTypeDecoder
-
readCount
protected int readCount(java.io.InputStream stream)
- Specified by:
readCountin classAbstractArrayTypeDecoder
-
-