|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.glaivestone.javax.io.SystemIOStreams
Operations on the standard system I/O streams.
These services provide clients who want to manage the standard system I/O streams during a session with the ability to redefine the system stream such that they can subsequently revert to the original console. This should not be a widely used mechanism - it should generally only be used by fundamental application/session management mechanisms for purposes such as retargeting the system output streams or providing logging services.
Field Summary | |
static java.io.PrintStream |
CONSOLE_STDERR
The original system console error stream. |
static java.io.InputStream |
CONSOLE_STDIN
The original system console input stream. |
static java.io.PrintStream |
CONSOLE_STDOUT
The original system console output stream. |
Method Summary | |
static void |
bindConsoleReferences()
Bind the references to the original system console streams. |
static void |
disconnectSysErr(java.io.PrintStream ps)
Disconnect the specified target as the system error stream. |
static void |
disconnectSysOut(java.io.PrintStream ps)
Disconnect the specified target as the system output stream. |
static boolean |
isSysErr(java.io.PrintStream ps)
Answer whether the specified target is installed in the current system error stream. |
static boolean |
isSysOut(java.io.PrintStream ps)
Answer whether the specified target is installed in the current system output stream. |
static void |
resetSysErr()
Reset the standard system error stream System.err
to the original system console error stream. |
static void |
resetSysOut()
Reset the standard system output stream System.out
to the original system console output stream |
static void |
resetSystemOutputStreams()
Reset the standard system output and error streams to the original system console stream. |
static void |
setSysErr(java.io.PrintStream ps)
Install the given stream as System.err . |
static void |
setSysOut(java.io.PrintStream ps)
Install the given stream as System.out . |
static void |
setSystemOutputStreams(java.io.PrintStream ps)
Install the given stream as System.out and System.err . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.io.InputStream CONSOLE_STDIN
public static final java.io.PrintStream CONSOLE_STDOUT
public static final java.io.PrintStream CONSOLE_STDERR
Method Detail |
public static void bindConsoleReferences()
public static void disconnectSysErr(java.io.PrintStream ps)
Resets the system stream to the original console if this was the sole destination target.
public static void disconnectSysOut(java.io.PrintStream ps)
Resets the system stream to the original console if this was the sole destination target.
public static boolean isSysErr(java.io.PrintStream ps)
public static boolean isSysOut(java.io.PrintStream ps)
public static void resetSysErr()
System.err
to the original system console error stream.
public static void resetSysOut()
System.out
to the original system console output stream
public static void resetSystemOutputStreams()
public static void setSysErr(java.io.PrintStream ps)
System.err
.
public static void setSysOut(java.io.PrintStream ps)
System.out
.
public static void setSystemOutputStreams(java.io.PrintStream ps)
System.out
and System.err
.
|
GFL 1.1 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |