|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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(boolean v)
print() Delegates |
void |
print(char v)
|
void |
print(char[] v)
|
void |
print(double v)
|
void |
print(float v)
|
void |
print(int v)
|
void |
print(long v)
|
void |
print(Object v)
|
void |
print(String s)
Writes a string to the underlying output stream. |
void |
println()
Writes a newline character to the underlying output stream. |
void |
println(boolean v)
println() Delegates |
void |
println(char v)
|
void |
println(char[] v)
|
void |
println(double v)
|
void |
println(float v)
|
void |
println(int v)
|
void |
println(long v)
|
void |
println(Object v)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintStream(OutputStream os)
Method Detail |
---|
public void write(int c)
OutputStream
write
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 OutputStream
c
- the byte
.public void print(String s)
s
- the string to printpublic void flush()
flush
in class OutputStream
public void println()
public void println(String s)
s
- the string to printpublic void print(boolean v)
public void print(char v)
public void print(char[] v)
public void print(double v)
public void print(float v)
public void print(int v)
public void print(long v)
public void print(Object v)
public void println(boolean v)
public void println(char v)
public void println(char[] v)
public void println(double v)
public void println(float v)
public void println(int v)
public void println(long v)
public void println(Object v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |