Class AbstractPrimitiveTypeEncoder<V>
java.lang.Object
org.apache.qpid.protonj2.codec.encoders.AbstractPrimitiveTypeEncoder<V>
- Type Parameters:
V
- The type that this primitive encoder handles
- All Implemented Interfaces:
PrimitiveTypeEncoder<V>
,TypeEncoder<V>
- Direct Known Subclasses:
BinaryTypeEncoder
,BooleanTypeEncoder
,ByteTypeEncoder
,CharacterTypeEncoder
,Decimal128TypeEncoder
,Decimal32TypeEncoder
,Decimal64TypeEncoder
,DoubleTypeEncoder
,FloatTypeEncoder
,IntegerTypeEncoder
,ListTypeEncoder
,LongTypeEncoder
,MapTypeEncoder
,NullTypeEncoder
,ShortTypeEncoder
,StringTypeEncoder
,SymbolTypeEncoder
,TimestampTypeEncoder
,UnsignedByteTypeEncoder
,UnsignedIntegerTypeEncoder
,UnsignedLongTypeEncoder
,UnsignedShortTypeEncoder
,UUIDTypeEncoder
public abstract class AbstractPrimitiveTypeEncoder<V>
extends Object
implements PrimitiveTypeEncoder<V>
Abstract implementation of the PrimitiveTypeEncoder that implements the common methods
that most of the primitive type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
writeArray
(ProtonBuffer buffer, EncoderState state, Object[] values) Write an array elements of the AMQP type to the given byte buffer.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.TypeEncoder
getTypeClass, writeRawArray, writeType
-
Constructor Details
-
AbstractPrimitiveTypeEncoder
public AbstractPrimitiveTypeEncoder()
-
-
Method Details
-
isArrayType
public boolean isArrayType()- Specified by:
isArrayType
in interfaceTypeEncoder<V>
- Returns:
- true if the type handled by this encoded is an AMQP Array type.
-
writeArray
Description copied from interface:TypeEncoder
Write an array elements of the AMQP type to the given byte buffer.This method writes the full Array type definition of an array of the type this encoder manages.
- Specified by:
writeArray
in interfaceTypeEncoder<V>
- Parameters:
buffer
- The buffer to write the AMQP array elements tostate
- The current encoder statevalues
- The array of values that is to be written.
-