|
Groovy Documentation | |||||||
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 java.lang.Object
Container for input/output handles.
Nested Class Summary | |
---|---|
static class |
IO.Verbosity
|
Field Summary | |
---|---|
java.io.PrintWriter |
err
Prefered error output writer. |
java.io.OutputStream |
errorStream
Raw error output stream. |
java.io.Reader |
in
Prefered input reader. |
java.io.InputStream |
inputStream
Raw input stream. |
java.io.PrintWriter |
out
Prefered output writer. |
java.io.OutputStream |
outputStream
Raw output stream. |
Constructor Summary | |
IO(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.io.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 java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public final java.io.PrintWriter err
public final java.io.OutputStream errorStream
public final java.io.Reader in
public final java.io.InputStream inputStream
public final java.io.PrintWriter out
public final java.io.OutputStream outputStream
Constructor Detail |
---|
public IO(java.io.InputStream inputStream, java.io.OutputStream outputStream, java.io.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)
Groovy Documentation