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 Verbosity |
getVerbosity() Returns the verbosity level. |
|
public boolean |
isDebug() Check if the verbosity level is set to Verbosity#DEBUG#DEBUG. |
|
public boolean |
isInfo() Check if the verbosity level is set to Verbosity#INFO#INFO. |
|
public boolean |
isQuiet() Check if the verbosity level is set to Verbosity#QUIET#QUIET. |
|
public boolean |
isVerbose() Check if the verbosity level is set to Verbosity#VERBOSE#VERBOSE. |
|
public void |
setVerbosity(Verbosity verbosity) Set the verbosity level. |
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#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#INFO.
Check if the verbosity level is set to Verbosity#QUIET#QUIET.
Check if the verbosity level is set to Verbosity#VERBOSE#VERBOSE.
Set the verbosity level.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.