Class AMXDebug.WrapOutput

  • All Implemented Interfaces:
    DebugSink, Output
    Enclosing class:
    AMXDebug

    public static final class AMXDebug.WrapOutput
    extends Object
    implements Output
    Internal class which wraps the Output so that debug may be dynamically enabled or disabled without any users of the Output having to be aware of it.
    • Method Detail

      • getDebug

        public boolean getDebug()
      • setDebug

        public void setDebug​(boolean debug)
        Change debug status. If debug is enabled any subsequent debugging messages will be written to their outputs, creating files if necessary. If debug is disabled, all output to files ceases, and the files are closed.
      • print

        public void print​(Object o)
        Description copied from interface: Output
        Output a message without a newline.
        Specified by:
        print in interface DebugSink
        Specified by:
        print in interface Output
        Parameters:
        o - the Object to output
      • println

        public void println​(Object o)
        Description copied from interface: Output
        Output a message with a newline.
        Specified by:
        println in interface DebugSink
        Specified by:
        println in interface Output
        Parameters:
        o - the Object to output
      • printError

        public void printError​(Object o)
        Description copied from interface: Output
        Output a message to error output
        Specified by:
        printError in interface Output
        Parameters:
        o - the Object to output
      • printDebug

        public void printDebug​(Object o)
        Description copied from interface: Output
        Output a debug error message if getDebug() is currently true.
        Specified by:
        printDebug in interface Output
        Parameters:
        o - the Object to output
      • reset

        public void reset()
      • close

        public void close()
        Description copied from interface: Output
        Done with it, can be destroyed.
        Specified by:
        close in interface Output