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 int
getTypeCode()
boolean
isJavaPrimitive()
protected int
readCount(java.io.InputStream stream)
protected int
readCount(ProtonBuffer buffer)
protected int
readSize(java.io.InputStream stream)
protected int
readSize(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:
isJavaPrimitive
in interfacePrimitiveTypeDecoder<java.lang.Object>
- Overrides:
isJavaPrimitive
in 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:
readSize
in classAbstractArrayTypeDecoder
- Throws:
DecodeException
-
readCount
protected int readCount(ProtonBuffer buffer) throws DecodeException
- Specified by:
readCount
in classAbstractArrayTypeDecoder
- Throws:
DecodeException
-
readSize
protected int readSize(java.io.InputStream stream)
- Specified by:
readSize
in classAbstractArrayTypeDecoder
-
readCount
protected int readCount(java.io.InputStream stream)
- Specified by:
readCount
in classAbstractArrayTypeDecoder
-
-