|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
cdx.scorebot.util.io.DocumentPrintStream
public class DocumentPrintStream
Provides a stream which can write to a TextFieldFIFO
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
DocumentPrintStream(TextFieldFIFO f)
Creates a DocumentPrintStream which will log to the specified TextFieldFIFO |
|
| Method Summary | |
|---|---|
void |
close()
No effect (text fields cannot be closed) |
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()
Terminate the current line by writing the line separator string. |
void |
println(boolean x)
Print a boolean and then terminate the line. |
void |
println(char x)
Print a character and then terminate the line. |
void |
println(char[] x)
Print an array of characters and then terminate the line. |
void |
println(double x)
Print a double and then terminate the line. |
void |
println(float x)
Print a float and then terminate the line. |
void |
println(int x)
Print an integer and then terminate the line. |
void |
println(long x)
Print a long and then terminate the line. |
void |
println(java.lang.Object x)
Print an Object and then terminate the line. |
void |
println(java.lang.String x)
Print a String and then terminate the line. |
void |
write(byte[] buf,
int off,
int len)
Write len bytes from the specified byte array starting at
offset off to these streams. |
void |
write(int b)
Write the specified byte to these streams. |
| Methods inherited from class java.io.PrintStream |
|---|
append, append, append, checkError, clearError, flush, format, format, printf, printf, 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 DocumentPrintStream(TextFieldFIFO f)
DocumentPrintStream which will log to the specified TextFieldFIFO
| Method Detail |
|---|
public void close()
close in interface java.io.Closeableclose in class java.io.PrintStreamOutputStream.close()public void write(int b)
flush method will be
invoked.
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.
write in class java.io.PrintStreamb - The byte to be written (Interpreted as a string.)print(char),
println(char)
public void write(byte[] buf,
int off,
int len)
len bytes from the specified byte array starting at
offset off to these streams. If automatic flushing is
enabled then the flush method will be invoked.
Note that the bytes will be written as given; to write characters
that will be translated according to the platform's default character
encoding, use the print(char) or println(char)
methods.
write in class java.io.PrintStreambuf - A byte array (Each byte interpreted as a string.)off - Offset from which to start taking byteslen - Number of bytes to writepublic void print(boolean b)
String.valueOf(boolean) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
write(int) method.
print in class java.io.PrintStreamb - The boolean to be printed (Interpreted as a string.)public void print(char c)
write(int) method.
print in class java.io.PrintStreamc - The char to be printed (Interpreted as a string.)public void print(int i)
String.valueOf(int) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
write(int) method.
print in class java.io.PrintStreami - The int to be printed (Interpreted as a string.)Integer.toString(int)public void print(long l)
String.valueOf(long) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
write(int) method.
print in class java.io.PrintStreaml - The long to be printed (Interpreted as a string.)Long.toString(long)public void print(float f)
String.valueOf(float) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
write(int) method.
print in class java.io.PrintStreamf - The float to be printed (Interpreted as a string.)Float.toString(float)public void print(double d)
String.valueOf(double) is translated into
bytes according to the platform's default character encoding, and these
bytes are written in exactly the manner of the write(int) method.
print in class java.io.PrintStreamd - The double to be printed (Interpreted as a string.)Double.toString(double)public void print(char[] s)
write(int) method.
print in class java.io.PrintStreams - The array of chars to be printed (Interpreted as a string.)public void print(java.lang.String s)
null then the string
"null" is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
write(int) method.
print in class java.io.PrintStreams - The String to be printedpublic void print(java.lang.Object obj)
String.valueOf(Object) method is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
write(int) method.
print in class java.io.PrintStreamobj - The Object to be printed (Interpreted as a string.)Object.toString()public void println()
line.separator, and is not necessarily a single newline
character ('\n').
println in class java.io.PrintStreampublic void println(boolean x)
print(boolean) and then
println().
println in class java.io.PrintStreamx - The boolean to be printed. (Interpreted as a string.)public void println(char x)
print(char) and then
println().
println in class java.io.PrintStreamx - The char to be printed. (Interpreted as a string.)public void println(int x)
print(int) and then
println().
println in class java.io.PrintStreamx - The int to be printed. (Interpreted as a string.)public void println(long x)
print(long) and then
println().
println in class java.io.PrintStreamx - a The long to be printed. (Interpreted as a string.)public void println(float x)
print(float) and then
println().
println in class java.io.PrintStreamx - The float to be printed. (Interpreted as a string.)public void println(double x)
print(double) and then
println().
println in class java.io.PrintStreamx - The double to be printed. (Interpreted as a string.)public void println(char[] x)
print(char[]) and
then println().
println in class java.io.PrintStreamx - an array of chars to print. (Each char interpreted as a string.)public void println(java.lang.String x)
print(String) and then
println().
println in class java.io.PrintStreamx - The String to be printed.public void println(java.lang.Object x)
print(Object) and then
println().
println in class java.io.PrintStreamx - The Object to be printed. (Interpreted as a string.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||