public class IO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IO.Verbosity
Defines the valid values of the
IO containers verbosity settings. |
Modifier and Type | Field and Description |
---|---|
PrintWriter |
err
Error output writer.
|
Reader |
in
Input reader.
|
PrintWriter |
out
Output writer.
|
StreamSet |
streams |
Constructor and Description |
---|
IO()
Helper which uses current values from
StreamSet.system() . |
IO(StreamSet streams,
boolean autoFlush) |
IO(StreamSet streams,
Reader in,
PrintWriter out,
PrintWriter err,
boolean autoFlush) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all streams.
|
protected Reader |
createReader(InputStream in) |
protected PrintWriter |
createWriter(PrintStream out,
boolean autoFlush) |
void |
error(Object msg) |
void |
error(String format,
Object... args) |
void |
flush()
Flush both output streams.
|
jline.Terminal |
getTerminal() |
IO.Verbosity |
getVerbosity()
Returns the verbosity level.
|
boolean |
isNormal() |
boolean |
isQuiet() |
boolean |
isSilent() |
void |
println(Object msg) |
void |
println(String format,
Object... args) |
void |
setVerbosity(IO.Verbosity verbosity)
Set the verbosity level.
|
void |
warn(Object msg) |
void |
warn(String format,
Object... args) |
public final StreamSet streams
public final Reader in
public final PrintWriter out
public final PrintWriter err
public IO(StreamSet streams, boolean autoFlush)
public IO(StreamSet streams, Reader in, PrintWriter out, PrintWriter err, boolean autoFlush)
public IO()
StreamSet.system()
.protected Reader createReader(InputStream in)
protected PrintWriter createWriter(PrintStream out, boolean autoFlush)
public void flush()
public void close() throws IOException
IOException
public jline.Terminal getTerminal()
public void setVerbosity(IO.Verbosity verbosity)
public IO.Verbosity getVerbosity()
public boolean isNormal()
public boolean isQuiet()
public boolean isSilent()
public void println(Object msg)
public void warn(Object msg)
public void error(Object msg)
Copyright © 2008-2012 Sonatype. All Rights Reserved.