Class AbstractDescribedTypeDecoder<V>
- java.lang.Object
-
- org.apache.qpid.protonj2.codec.decoders.AbstractDescribedTypeDecoder<V>
-
- Type Parameters:
V
- The type that this decoder handles.
- All Implemented Interfaces:
DescribedTypeDecoder<V>
,StreamDescribedTypeDecoder<V>
,StreamTypeDecoder<V>
,TypeDecoder<V>
- Direct Known Subclasses:
AcceptedTypeDecoder
,AmqpSequenceTypeDecoder
,AmqpValueTypeDecoder
,ApplicationPropertiesTypeDecoder
,AttachTypeDecoder
,BeginTypeDecoder
,CloseTypeDecoder
,CoordinatorTypeDecoder
,DataTypeDecoder
,DeclaredTypeDecoder
,DeclareTypeDecoder
,DeleteOnCloseTypeDecoder
,DeleteOnNoLinksOrMessagesTypeDecoder
,DeleteOnNoLinksTypeDecoder
,DeleteOnNoMessagesTypeDecoder
,DeliveryAnnotationsTypeDecoder
,DetachTypeDecoder
,DischargeTypeDecoder
,DispositionTypeDecoder
,EndTypeDecoder
,ErrorConditionTypeDecoder
,FlowTypeDecoder
,FooterTypeDecoder
,HeaderTypeDecoder
,MessageAnnotationsTypeDecoder
,ModifiedTypeDecoder
,OpenTypeDecoder
,PropertiesTypeDecoder
,ReceivedTypeDecoder
,RejectedTypeDecoder
,ReleasedTypeDecoder
,SaslChallengeTypeDecoder
,SaslInitTypeDecoder
,SaslMechanismsTypeDecoder
,SaslOutcomeTypeDecoder
,SaslResponseTypeDecoder
,SourceTypeDecoder
,TargetTypeDecoder
,TransactionStateTypeDecoder
,TransferTypeDecoder
,UnknownDescribedTypeDecoder
public abstract class AbstractDescribedTypeDecoder<V> extends java.lang.Object implements DescribedTypeDecoder<V>, StreamDescribedTypeDecoder<V>
Abstract base for all Described Type decoders which implements the generic methods common to all the implementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractDescribedTypeDecoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
checkIsExpectedType(java.lang.Class<?> expected, StreamTypeDecoder<?> actual)
protected static void
checkIsExpectedType(java.lang.Class<?> expected, TypeDecoder<?> actual)
protected static <E> E
checkIsExpectedTypeAndCast(java.lang.Class<?> expected, StreamTypeDecoder<?> actual)
protected static <E> E
checkIsExpectedTypeAndCast(java.lang.Class<?> expected, TypeDecoder<?> actual)
boolean
isArrayType()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.protonj2.codec.DescribedTypeDecoder
getDescriptorCode, getDescriptorSymbol
-
Methods inherited from interface org.apache.qpid.protonj2.codec.StreamDescribedTypeDecoder
getDescriptorCode, getDescriptorSymbol
-
Methods inherited from interface org.apache.qpid.protonj2.codec.StreamTypeDecoder
getTypeClass, readArrayElements, readValue, skipValue
-
Methods inherited from interface org.apache.qpid.protonj2.codec.TypeDecoder
getTypeClass, readArrayElements, readValue, skipValue
-
-
-
-
Method Detail
-
isArrayType
public boolean isArrayType()
- Specified by:
isArrayType
in interfaceStreamTypeDecoder<V>
- Specified by:
isArrayType
in interfaceTypeDecoder<V>
- Returns:
- true if the underlying type that is going to be decoded is an array type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
checkIsExpectedTypeAndCast
protected static <E> E checkIsExpectedTypeAndCast(java.lang.Class<?> expected, TypeDecoder<?> actual) throws DecodeException
- Throws:
DecodeException
-
checkIsExpectedTypeAndCast
protected static <E> E checkIsExpectedTypeAndCast(java.lang.Class<?> expected, StreamTypeDecoder<?> actual) throws DecodeException
- Throws:
DecodeException
-
checkIsExpectedType
protected static void checkIsExpectedType(java.lang.Class<?> expected, TypeDecoder<?> actual) throws DecodeException
- Throws:
DecodeException
-
checkIsExpectedType
protected static void checkIsExpectedType(java.lang.Class<?> expected, StreamTypeDecoder<?> actual) throws DecodeException
- Throws:
DecodeException
-
-