| Modifiers | Name | Description |
|---|---|---|
static class |
IO.Verbosity |
Verbosity for simple logging: QUIET, INFO, VERBOSE, DEBUG |
| Modifiers | Name | Description |
|---|---|---|
boolean |
ansiSupported |
Whether ansi support is available |
PrintWriter |
err |
Preferred error output writer. |
OutputStream |
errorStream |
Raw error output stream. |
Reader |
in |
Preferred input reader. |
InputStream |
inputStream |
Raw input stream. |
PrintWriter |
out |
Preferred output writer. |
OutputStream |
outputStream |
Raw output stream. |
| Constructor and description |
|---|
IO(InputStream inputStream, OutputStream outputStream, OutputStream errorStream)Construct a new IO container. |
IO()Construct a new IO container using system streams. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
close()Close all streams. |
|
public void |
flush()Flush both output streams. |
|
public IO.Verbosity |
getVerbosity()Returns the verbosity level. |
|
public boolean |
isDebug()Check if the verbosity level is set to Verbosity.DEBUG. |
|
public boolean |
isInfo()Check if the verbosity level is set to Verbosity.INFO. |
|
public boolean |
isQuiet()Check if the verbosity level is set to Verbosity.QUIET. |
|
public boolean |
isVerbose()Check if the verbosity level is set to Verbosity.VERBOSE. |
|
public void |
setVerbosity(IO.Verbosity verbosity)Set the verbosity level. |
|
protected PrintWriter |
tryConstructRenderWriter(OutputStream stream)Attempts to create an ANSI-aware writer for the supplied stream. |
Whether ansi support is available
Preferred error output writer.
Raw error output stream.
Preferred input reader.
Raw input stream.
Preferred output writer.
Raw output stream.
Construct a new IO container.
Construct a new IO container using system streams.
Close all streams.
Flush both output streams.
Returns the verbosity level.
Check if the verbosity level is set to Verbosity.DEBUG.
For general usage, when debug output is required, it is better to use the logging facility instead.
Check if the verbosity level is set to Verbosity.INFO.
Check if the verbosity level is set to Verbosity.QUIET.
Check if the verbosity level is set to Verbosity.VERBOSE.
Set the verbosity level.
Attempts to create an ANSI-aware writer for the supplied stream.
stream - the output stream to wrapnull if ANSI support is
unavailableCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.