Class MetadataSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Metadata>
org.apache.tika.serialization.serdes.MetadataSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class MetadataSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Metadata>
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    MetadataSerializer(boolean prettyPrint)
     
    MetadataSerializer(boolean prettyPrint, com.fasterxml.jackson.core.StreamReadConstraints typedValueConstraints)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(Metadata metadata, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MetadataSerializer

      public MetadataSerializer()
    • MetadataSerializer

      public MetadataSerializer(boolean prettyPrint)
    • MetadataSerializer

      public MetadataSerializer(boolean prettyPrint, com.fasterxml.jackson.core.StreamReadConstraints typedValueConstraints)
      Parameters:
      typedValueConstraints - if non-null, values of registered Property.ValueType.INTEGER, Property.ValueType.REAL, Property.ValueType.BOOLEAN and Property.ValueType.JSON keys are written as JSON numbers, booleans and structures. A value that is malformed for its type, or that a reader held to these constraints could not read back, stays a string.
  • Method Details

    • serialize

      public void serialize(Metadata metadata, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<Metadata>
      Throws:
      IOException