Package 

Class OutputHandler

  • All Implemented Interfaces:

    @Deprecated() 
    public class OutputHandler
    
                        

    The output handler is to handle System.out.print in the way so you can save all outputs to a string and read it!

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int storeRows
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static int getStoreRows() Get the current configuration of how much rows should be stored.
      static void setStoreRows(int storeRows) Set how much rows should be stored.
      static void enable() To enable the output recorder call this function!
      static void disable() To disable the output recorder call this function!
      static Array<String> getOutput() Get the last 1024 lines from the output.
      static void clearOutput() Clear the output and remove all lines.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getStoreRows

         static int getStoreRows()

        Get the current configuration of how much rows should be stored. Default is 1024

      • setStoreRows

         static void setStoreRows(int storeRows)

        Set how much rows should be stored. Default is 1024.

        Parameters:
        storeRows - How much rows can be stored before the oldest will be deleted for making more space.
      • enable

         static void enable()

        To enable the output recorder call this function!

      • disable

         static void disable()

        To disable the output recorder call this function!

      • clearOutput

         static void clearOutput()

        Clear the output and remove all lines.