|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--java.io.PrintStream
|
+--com.ibm.dse.tools.workbench.gui.ConsolePrintStream
This class provides a PrintStream redirected to the GraphicConsole object.
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
ConsolePrintStream(java.io.OutputStream out)
This constructor creates a ConsoleErrorPrintStream object without autoflush. |
|
ConsolePrintStream(java.io.OutputStream out,
boolean autoFlush)
This constructor creates a ConsoleErrorPrintStream object with the given OutputStream and autoflush option. |
|
| Method Summary | |
boolean |
checkError()
Flush the stream and check its error state. |
void |
close()
Close the stream. |
void |
flush()
Flush the stream. |
void |
print(boolean b)
Print a boolean value. |
void |
print(char c)
Print a character. |
void |
print(char[] s)
Print an array of characters. |
void |
print(double d)
Print a double-precision floating-point number. |
void |
print(float f)
Print a floating-point number. |
void |
print(int i)
Print an integer. |
void |
print(long l)
Print a long integer. |
void |
print(java.lang.Object obj)
Print an object. |
void |
print(java.lang.String s)
Print a string. |
void |
println()
Finish the current line by writing a line separator. |
void |
println(boolean x)
Print a boolean, and then finish the line. |
void |
println(char x)
Print a character, and then finish the line. |
void |
println(char[] x)
Print an array of characters, and then finish the line. |
void |
println(double x)
Print a double, and then finish the line. |
void |
println(float x)
Print a float, and then finish the line. |
void |
println(int x)
Print an integer, and then finish the line. |
void |
println(long x)
Print a long, and then finish the line. |
void |
println(java.lang.Object x)
Print an Object, and then finish the line. |
void |
println(java.lang.String x)
Print a String, and then finish the line. |
void |
write(byte[] buf,
int off,
int len)
Write a portion of a byte array, blocking if necessary. |
void |
write(int b)
Write a byte, blocking if necessary. |
abstract void |
write(java.lang.String s)
This method writes a String in the PrintStream. |
| Methods inherited from class java.io.PrintStream |
setError |
| Methods inherited from class java.io.FilterOutputStream |
write |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ConsolePrintStream(java.io.OutputStream out)
out - java.io.OutputStream
public ConsolePrintStream(java.io.OutputStream out,
boolean autoFlush)
out - java.io.OutputStreamautoFlush - boolean| Method Detail |
public boolean checkError()
public void close()
public void flush()
public void print(char[] s)
s - char[] The array of chars to be printed.public void print(char c)
c - char The char to be printedpublic void print(double d)
toString method of the
Double class when invoked on the given double
value.d - double The double to be printedpublic void print(float f)
toString method of the Float
class when invoked on the given float value.f - float The float to be printedpublic void print(int i)
toString method of the Integer class when
invoked on the given int value.i - int The int to be printedpublic void print(long l)
toString method of the Long class when
invoked on the given long value.l - The long to be printedpublic void print(java.lang.Object obj)
toString method.obj - Object The Object to be printedpublic void print(java.lang.String s)
null, the string
"null" is written to the underlying output stream.
Otherwise, the string's characters are converted into bytes according to
the platform's default character encoding.s - String The String to be printedpublic void print(boolean b)
"true" is written to the underlying output stream;
otherwise, the string "false" is written.b - boolean The boolean to be printedpublic void println()
line.separator, and is not necessarily a single newline
character ('\n').public void println(char[] x)
public void println(char x)
public void println(double x)
public void println(float x)
public void println(int x)
public void println(long x)
public void println(java.lang.Object x)
public void println(java.lang.String x)
public void println(boolean x)
public void write(byte[] buf,
int off,
int len)
buf - A byte arrayoff - Offset from which to start taking byteslen - Number of bytes to writepublic void write(int b)
flush method
will be called.
Note that the byte is written as given; to write a character that
will be translated according to the platform's default character
encoding, use the print(char) or println(char)
methods.
b - int The byte to be writtenpublic abstract void write(java.lang.String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||