Class File.JsonSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
    Enclosing class:
    File

    public static class File.JsonSerializer
    extends edu.isi.pegasus.planner.common.PegasusJsonSerializer<File>
    Custom serializer for YAML representation of a File
    Author:
    Ryan Tanaka
    • 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
      JsonSerializer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serialize​(File f, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp)
      Serialize a File into YAML representation
      • Methods inherited from class edu.isi.pegasus.planner.common.PegasusJsonSerializer

        writeArray, writeNumberField, writeStringField, writeStringField
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
      • Methods inherited from class java.lang.Object

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

      • JsonSerializer

        public JsonSerializer()
    • Method Detail

      • serialize

        public void serialize​(File f,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider sp)
                       throws java.io.IOException,
                              java.lang.UnsupportedOperationException
        Serialize a File into YAML representation
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<File>
        Parameters:
        f - File object
        gen - json generator
        sp - serialization provider
        Throws:
        java.io.IOException - exception
        java.lang.UnsupportedOperationException - exception