Class ByteArrayBase64Serializer
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractValueTypeSerializer<byte[]>
org.eclipse.yasson.internal.serializer.ByteArrayBase64Serializer
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbSerializer<byte[]>
Serializes byte array with Base64.
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayBase64Serializer(Customization customization) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidserialize(byte[] obj, javax.json.stream.JsonGenerator generator, Marshaller marshaller) Serializes an object to JSON.Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractValueTypeSerializer
getCustomization, serialize
-
Constructor Details
-
ByteArrayBase64Serializer
Creates a new instance.- Parameters:
customization- Customization model.
-
-
Method Details
-
serialize
protected void serialize(byte[] obj, javax.json.stream.JsonGenerator generator, Marshaller marshaller) Description copied from class:AbstractValueTypeSerializerSerializes an object to JSON.- Specified by:
serializein classAbstractValueTypeSerializer<byte[]>- Parameters:
obj- Object to serialize.generator- JSON generator to use.marshaller- Marshaller.
-