Class ShortArraySerializer
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractItem<T>
org.eclipse.yasson.internal.serializer.AbstractContainerSerializer<T>
org.eclipse.yasson.internal.serializer.AbstractArraySerializer<short[]>
org.eclipse.yasson.internal.serializer.ShortArraySerializer
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbSerializer<short[]>
,RuntimeTypeInfo
,CurrentItem<short[]>
,EmbeddedItem
Serializer for arrays of shorts.
-
Constructor Summary
ModifierConstructorDescriptionprotected
ShortArraySerializer(SerializerBuilder builder)
Creates new short array serializer. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
serializeInternal(short[] arr, javax.json.stream.JsonGenerator generator, javax.json.bind.serializer.SerializationContext ctx)
Serialize content of provided container.Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractArraySerializer
writeStart, writeStart
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractContainerSerializer
addValueSerializer, beforeSerialize, getValueSerializer, getValueType, serialize, serializeItem, serializerCaptor, writeEnd
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractItem
getClassModel, getRuntimeType, getWrapper
-
Constructor Details
-
ShortArraySerializer
Creates new short array serializer.- Parameters:
builder
- serializer builder
-
-
Method Details
-
serializeInternal
protected void serializeInternal(short[] arr, javax.json.stream.JsonGenerator generator, javax.json.bind.serializer.SerializationContext ctx)Description copied from class:AbstractContainerSerializer
Serialize content of provided container.- Specified by:
serializeInternal
in classAbstractContainerSerializer<short[]>
- Parameters:
arr
- container to be serializedgenerator
- JSON format generatorctx
- JSON serialization context
-