public class IO extends Object implements Closeable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | IO.Verbosity | 
| Modifier and Type | Field and Description | 
|---|---|
| PrintWriter | errPrefered error output writer. | 
| OutputStream | errorStreamRaw error output stream. | 
| Reader | inPrefered input reader. | 
| InputStream | inputStreamRaw input stream. | 
| PrintWriter | outPrefered 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. | 
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 IO(InputStream inputStream, OutputStream outputStream, OutputStream errorStream)
public IO()
public void setVerbosity(IO.Verbosity 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