|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.io.Stdio
public class Stdio
Class Stdio provides standard I/O streams that can be redirected on a per-thread basis.
| Method Summary | |
|---|---|
static PrintStream |
err()
Get the standard error stream for the calling thread. |
static void |
err(PrintStream stream)
Set the standard error stream for the calling thread. |
static InputStream |
in()
Get the standard input stream for the calling thread. |
static void |
in(InputStream stream)
Set the standard input stream for the calling thread. |
static PrintStream |
out()
Get the standard output stream for the calling thread. |
static void |
out(PrintStream stream)
Set the standard output stream for the calling thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InputStream in()
public static PrintStream out()
public static PrintStream err()
public static void in(InputStream stream)
stream - Standard input stream.
NullPointerException - (unchecked exception) Thrown if stream is null.public static void out(PrintStream stream)
stream - Standard output stream.
NullPointerException - (unchecked exception) Thrown if stream is null.public static void err(PrintStream stream)
stream - Standard error stream.
NullPointerException - (unchecked exception) Thrown if stream is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||