Class ByteBufferSerializer

All Implemented Interfaces:
JsonFormatVisitable

public class ByteBufferSerializer extends StdScalarSerializer<ByteBuffer>
  • Constructor Details

    • ByteBufferSerializer

      public ByteBufferSerializer()
  • Method Details

    • serialize

      public void serialize(ByteBuffer bbuf, tools.jackson.core.JsonGenerator gen, SerializationContext provider) throws tools.jackson.core.JacksonException
      Description copied from class: ValueSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class StdSerializer<ByteBuffer>
      Parameters:
      bbuf - Value to serialize; can not be null.
      gen - Generator used to output resulting Json content
      provider - Context that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      tools.jackson.core.JacksonException
    • acceptJsonFormatVisitor

      public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
      Description copied from class: StdSerializer
      Default implementation specifies no format. This behavior is usually overriden by custom serializers.
      Specified by:
      acceptJsonFormatVisitor in interface JsonFormatVisitable
      Overrides:
      acceptJsonFormatVisitor in class StdScalarSerializer<ByteBuffer>
      typeHint - Type of element (entity like property) being visited