Class OriginalMetadataParser


  • public class OriginalMetadataParser
    extends java.lang.Object
    Helper class used to read the content of an OriginalMetadataResponse.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void read​(omero.cmd.OriginalMetadataResponse response)
      Reads the content of the response and writes it to the file.
      void read​(omero.cmd.OriginalMetadataResponse response, java.lang.String separator)
      Reads the content of the response and writes (appends) it to the file or buffer.
      • Methods inherited from class java.lang.Object

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

      • OriginalMetadataParser

        public OriginalMetadataParser​(java.io.File file)
        Creates a new instance.
        Parameters:
        file - The file to write the content into
      • OriginalMetadataParser

        public OriginalMetadataParser​(java.lang.StringBuffer buffer)
        Creates a new instance.
        Parameters:
        buffer - The buffer to write the content into
    • Method Detail

      • read

        public void read​(omero.cmd.OriginalMetadataResponse response)
                  throws java.lang.Exception
        Reads the content of the response and writes it to the file.
        Parameters:
        response - The response to handle.
        Throws:
        java.lang.Exception - The exception thrown if an error occurred while reading/writing.
      • read

        public void read​(omero.cmd.OriginalMetadataResponse response,
                         java.lang.String separator)
                  throws java.lang.Exception
        Reads the content of the response and writes (appends) it to the file or buffer.
        Parameters:
        response - The response to handle.
        separator - Value used to separate key and value.
        Throws:
        java.lang.Exception - The exception thrown if an error occurred while reading/writing.