Interface MetaDataSerializer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int APPEND  
      static int COMPACT  
      static int PRETTY  
      static int VERBOSE  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void serialize​(int flags)
      Serialize the current set of objects to the files from which they were parsed.
      void serialize​(java.io.File file, int flags)
      Serialize the current set of objects to the given file.
      void serialize​(java.io.Writer out, int flags)
      Serialize the current set of objects to the given stream.
      void serialize​(java.util.Map output, int flags)
      Serialize the current set of objects to the files from which they were parsed.
    • Method Detail

      • serialize

        void serialize​(int flags)
                throws java.io.IOException
        Serialize the current set of objects to the files from which they were parsed. Any objects for which a source file cannot be determined will not be included in the output.
        Parameters:
        flags - bit flags specifying the output flags; e.g. PRETTY
        Throws:
        java.io.IOException
      • serialize

        void serialize​(java.util.Map output,
                       int flags)
                throws java.io.IOException
        Serialize the current set of objects to the files from which they were parsed. The objects must implement the SourceTracker interface.
        Parameters:
        output - if null, then serialize directly to the file system; otherwise, populate the specified Map with keys that are the File instances, and values that are the String contents of the MetaData
        flags - bit flags specifying the output flags; e.g. PRETTY
        Throws:
        java.io.IOException
      • serialize

        void serialize​(java.io.File file,
                       int flags)
                throws java.io.IOException
        Serialize the current set of objects to the given file.
        Parameters:
        flags - bit flags specifying the output flags; e.g. PRETTY | APPEND
        Throws:
        java.io.IOException
      • serialize

        void serialize​(java.io.Writer out,
                       int flags)
                throws java.io.IOException
        Serialize the current set of objects to the given stream.
        Parameters:
        flags - bit flags specifying the output flags; e.g. PRETTY
        Throws:
        java.io.IOException