Class TextHandler

java.lang.Object
edu.harvard.hul.ois.jhove.HandlerBase
edu.harvard.hul.ois.jhove.handler.TextHandler
All Implemented Interfaces:
OutputHandler

public class TextHandler extends HandlerBase
OutputHandler for plain text output.
  • Constructor Details

    • TextHandler

      public TextHandler()
      Creates a TextHandler.
  • Method Details

    • show

      public void show()
      Outputs minimal information about the application
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show(App app)
      Outputs detailed information about the application, including configuration, available modules and handlers, etc.
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show(OutputHandler handler)
      Outputs information about the OutputHandler specified in the parameter
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show(Module module)
      Outputs information about a Module
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show(RepInfo info)
      Outputs the information contained in a RepInfo object
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • showFooter

      public void showFooter()
      Do the final output. This should be in a suitable format for including multiple files between the header and the footer.
      Specified by:
      showFooter in interface OutputHandler
      Specified by:
      showFooter in class HandlerBase
    • showHeader

      public void showHeader()
      Do the initial output. This should be in a suitable format for including multiple files between the header and the footer.
      Specified by:
      showHeader in interface OutputHandler
      Specified by:
      showHeader in class HandlerBase
    • showNisoImageMetadata

      protected void showNisoImageMetadata(NisoImageMetadata niso, String margin, boolean rawOutput)
      Display the NISO image metadata formatted according to the MIX schema. The schema which is used may be 0.2 or 1.0, depending on the module parameters.
      Parameters:
      niso - NISO image metadata