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[]>

public class ByteArrayBase64Serializer extends AbstractValueTypeSerializer<byte[]>
Serializes byte array with Base64.
  • Constructor Details

    • ByteArrayBase64Serializer

      public ByteArrayBase64Serializer(Customization customization)
      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: AbstractValueTypeSerializer
      Serializes an object to JSON.
      Specified by:
      serialize in class AbstractValueTypeSerializer<byte[]>
      Parameters:
      obj - Object to serialize.
      generator - JSON generator to use.
      marshaller - Marshaller.