java.lang.Object | +--gr.aueb.dds.BIO
A class containing static methods that allow the simple, correct, and efficient procesing of a console application's standard input and output streams. Output is buffered, but automagically flushed, so that prompts in interactive applications work as expected. All errors will terminate the application with an error message. The code was written to provide an easy-to-learn and consistent interface for learning Java. It is not intended for production work.
Writer
,
PrintWriter
Constructor Summary | |
BIO()
|
Method Summary | |
static void |
flush()
Flush the output stream. |
static void |
print(boolean x)
Print the argument of type boolean on the standard output. |
static void |
print(char x)
Print the argument of type char on the standard output. |
static void |
print(double x)
Print the argument of type double on the standard output. |
static void |
print(int x)
Print the argument of type int on the standard output. |
static void |
print(Object x)
Print the argument of type Object on the standard output. |
static void |
println()
Print a newline onthe standard output |
static void |
println(boolean x)
Print the argument of type boolean on the standard output, followed by a newline. |
static void |
println(char x)
Print the argument of type char on the standard output, followed by a newline. |
static void |
println(double x)
Print the argument of type double on the standard output, followed by a newline. |
static void |
println(int x)
Print the argument of type char on the standard output, followed by a newline. |
static void |
println(Object x)
Print the argument of type Object on the standard output, followed by a newline. |
static int |
readChar()
Read a character from the standard input. |
static double |
readDouble()
Read a double from the standard input and return its value. |
static int |
readInt()
Read an integer from the standard input and return its value. |
static String |
readString()
Read a line from the standard input and return it as a string. |
Methods inherited from class java.lang.Object |
wait |
Constructor Detail |
public BIO()
Method Detail |
public static void flush()
public static void print(boolean x)
public static void print(char x)
public static void print(double x)
public static void print(int x)
public static void print(Object x)
public static void println()
public static void println(boolean x)
public static void println(char x)
public static void println(double x)
public static void println(int x)
public static void println(Object x)
public static int readChar()
public static double readDouble()
public static int readInt()
public static String readString()