public class IO extends Object implements Closeable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | IO.VerbosityVerbosity for simple logging: QUIET, INFO, VERBOSE, DEBUG | 
| Modifier and Type | Field and Description | 
|---|---|
| boolean | ansiSupportedWhether ansi support is available | 
| PrintWriter | errPreferred error output writer. | 
| OutputStream | errorStreamRaw error output stream. | 
| Reader | inPreferred input reader. | 
| InputStream | inputStreamRaw input stream. | 
| PrintWriter | outPreferred output writer. | 
| OutputStream | outputStreamRaw output stream. | 
| Constructor and Description | 
|---|
| IO()Construct a new IO container using system streams. | 
| IO(InputStream inputStream,
  OutputStream outputStream,
  OutputStream errorStream)Construct a new IO container. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close all streams. | 
| void | flush()Flush both output streams. | 
| IO.Verbosity | getVerbosity()Returns the verbosity level. | 
| boolean | isDebug()Check if the verbosity level is set to  IO.Verbosity.DEBUG. | 
| boolean | isInfo()Check if the verbosity level is set to  IO.Verbosity.INFO. | 
| boolean | isQuiet()Check if the verbosity level is set to  IO.Verbosity.QUIET. | 
| boolean | isVerbose()Check if the verbosity level is set to  IO.Verbosity.VERBOSE. | 
| void | setVerbosity(IO.Verbosity verbosity)Set the verbosity level. | 
| protected PrintWriter | tryConstructRenderWriter(OutputStream stream) | 
public final InputStream inputStream
public final OutputStream outputStream
public final OutputStream errorStream
public final Reader in
public final PrintWriter out
public final PrintWriter err
public final boolean ansiSupported
public IO(InputStream inputStream, OutputStream outputStream, OutputStream errorStream)
public IO()
protected PrintWriter tryConstructRenderWriter(OutputStream stream)
public void setVerbosity(IO.Verbosity verbosity)
public IO.Verbosity getVerbosity()
public boolean isQuiet()
IO.Verbosity.QUIET.public boolean isInfo()
IO.Verbosity.INFO.public boolean isVerbose()
IO.Verbosity.VERBOSE.public boolean isDebug()
IO.Verbosity.DEBUG.
 For general usage, when debug output is required, it is better to use the logging facility instead.
public void flush()
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOException