Class TextHandler

  • All Implemented Interfaces:
    OutputHandler

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

      • TextHandler

        public TextHandler()
        Creates a TextHandler.
    • Method Detail

      • 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
      • 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