|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.tools.shell.IO
public class IO
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()
Construct a new IO container using system streams. |
|
IO(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.io.OutputStream errorStream)
Construct a new IO container. |
|
| 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 IO.Verbosity.DEBUG. |
boolean |
isInfo()
Check if the verbosity level is set to IO.Verbosity.INFO. |
boolean |
isQuiet()
Check if the verbosity level is set to IO.Verbosity.QUIET. |
boolean |
isVerbose()
Check if the verbosity level is set to IO.Verbosity.VERBOSE. |
void |
setVerbosity(IO.Verbosity verbosity)
Set the verbosity level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.io.InputStream inputStream
public final java.io.OutputStream outputStream
public final java.io.OutputStream errorStream
public final java.io.Reader in
public final java.io.PrintWriter out
public final java.io.PrintWriter err
| Constructor Detail |
|---|
public IO(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.io.OutputStream errorStream)
public IO()
| Method Detail |
|---|
public void setVerbosity(IO.Verbosity verbosity)
verbosity - public IO.Verbosity getVerbosity()
public boolean isQuiet()
IO.Verbosity.QUIET.
public boolean isInfo()
IO.Verbosity.INFO.
public boolean isVerbose()
IO.Verbosity.VERBOSE.
public boolean isDebug()
IO.Verbosity.DEBUG.
For general usage, when debug output is required, it is better to use the logging facility instead.
public void flush()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||