|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.tools.shell.IO
class IO extends Object
Container for input/output handles.
Nested Class Summary | |
---|---|
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. |
Verbosity
|
getVerbosity()
Returns the verbosity level. |
boolean
|
isDebug()
Check if the verbosity level is set to { |
boolean
|
isInfo()
Check if the verbosity level is set to { |
boolean
|
isQuiet()
Check if the verbosity level is set to { |
boolean
|
isVerbose()
Check if the verbosity level is set to { |
void
|
setVerbosity(Verbosity verbosity)
Set the verbosity level. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
final PrintWriter err
final OutputStream errorStream
final Reader in
final InputStream inputStream
final PrintWriter out
final OutputStream outputStream
Constructor Detail |
---|
public IO(InputStream inputStream, OutputStream outputStream, OutputStream errorStream)
public IO()
Method Detail |
---|
public void close()
public void flush()
public Verbosity getVerbosity()
public boolean isDebug()
For generaly 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(Verbosity verbosity)
Copyright © 2003-2009 The Codehaus. All rights reserved.