|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.PrintStream
public class PrintStream
Minimal implementation of PrintStream. Currently only implements the mandatory write method and println.
| Constructor Summary | |
|---|---|
PrintStream(OutputStream os)
|
|
| Method Summary | |
|---|---|
void |
flush()
Flush any pending output in the stream |
void |
print(String s)
Writes a string to the underlying output stream. |
void |
println(String s)
Writes a string followed by a newline character to the underlying output stream. |
void |
write(int c)
Writes the specified byte to this output stream. |
| Methods inherited from class java.io.OutputStream |
|---|
close, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
|---|
public PrintStream(OutputStream os)
| Method Detail |
|---|
public void write(int c)
OutputStreamwrite is that one byte is written
to the output stream. The byte to be written is the eight
low-order bits of the argument b. The 24
high-order bits of b are ignored.
Subclasses of OutputStream must provide an
implementation for this method.
write in class OutputStreamc - the byte.public void print(String s)
s - the string to printpublic void flush()
flush in class OutputStreampublic void println(String s)
s - the string to print
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||