/** * Helper which uses current values from {@link StreamSet#system}. */ public IO() { this(StreamSet.system(), true); }
/** * Restores the System streams to the given pair and resets the hijacker state to un-installed. */ public static synchronized void restore(final StreamSet streams) { assert streams != null; StreamSet.system(streams); previous = null; installed = false; }
public AnsiIO() { this(StreamSet.system(), true); }
/** * Restores the original System streams from {@link StreamSet#SYSTEM} and resets * the hijacker state to un-installed. */ public static synchronized void restore() { restore(StreamSet.system()); }