|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.tools.shell.IO
public class IO extends Object
Container for input/output handles.
Nested Class Summary | |
---|---|
static class |
IO.Verbosity
|
Field Summary | |
---|---|
PrintWriter |
err
Prefered error output writer. |
OutputStream |
errorStream
Raw error output stream. |
Reader |
in
Prefered input reader. |
InputStream |
inputStream
Raw input stream. |
PrintWriter |
out
Prefered output writer. |
OutputStream |
outputStream
Raw output stream. |
Constructor Summary | |
IO(InputStream inputStream, OutputStream outputStream, OutputStream errorStream)
Construct a new IO container. |
|
IO()
Construct a new IO container using system streams. |
Method Summary | |
---|---|
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 Verbosity#DEBUG#DEBUG. |
boolean
|
isInfo()
Check if the verbosity level is set to Verbosity#INFO#INFO. |
boolean
|
isQuiet()
Check if the verbosity level is set to Verbosity#QUIET#QUIET. |
boolean
|
isVerbose()
Check if the verbosity level is set to Verbosity#VERBOSE#VERBOSE. |
void
|
setVerbosity(IO.Verbosity verbosity)
Set the verbosity level. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public final PrintWriter err
public final OutputStream errorStream
public final Reader in
public final InputStream inputStream
public final PrintWriter out
public final OutputStream outputStream
Constructor Detail |
---|
public IO(InputStream inputStream, OutputStream outputStream, OutputStream errorStream)
public IO()
Method Detail |
---|
public void close()
public void flush()
public IO.Verbosity getVerbosity()
public boolean isDebug()
For general usage, when debug output is required, it is better to use the logging facility instead.
public boolean isInfo()
public boolean isQuiet()
public boolean isVerbose()
public void setVerbosity(IO.Verbosity verbosity)
Copyright © 2003-2013 The Codehaus. All rights reserved.