-
- 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!
-
-
Field Summary
Fields Modifier and Type Field Description private static intstoreRows
-
Method Summary
Modifier and Type Method Description static intgetStoreRows()Get the current configuration of how much rows should be stored. static voidsetStoreRows(int storeRows)Set how much rows should be stored. static voidenable()To enable the output recorder call this function! static voiddisable()To disable the output recorder call this function! static Array<String>getOutput()Get the last 1024 lines from the output. static voidclearOutput()Clear the output and remove all lines. -
-
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.
-
-
-
-