public class StreamPrintWriter extends java.io.PrintWriter implements FlushBuffer, EnclosedWriteStream
Constructor and Description |
---|
StreamPrintWriter(WriteStream out)
Creates a new PrintWriterImpl
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush()
Flushes the writer.
|
void |
flushBuffer()
Flushes the writer.
|
WriteStream |
getWriteStream() |
void |
print(char ch)
Prints a character.
|
void |
print(char[] v)
Prints a character array
|
void |
print(double v)
Prints a double followed by a newline.
|
void |
print(float v)
Prints a double followed by a newline.
|
void |
print(int v)
Prints an integer.
|
void |
print(long v)
Prints a long.
|
void |
print(java.lang.Object v)
Prints the value of the object.
|
void |
print(java.lang.String v)
Prints a string.
|
void |
println()
Prints the newline.
|
void |
println(boolean v)
Prints the boolean followed by a newline.
|
void |
println(char v)
Prints a character followed by a newline.
|
void |
println(char[] v)
Writes a character array followed by a newline.
|
void |
println(double v)
Prints a double followed by a newline.
|
void |
println(float v)
Prints a float followed by a newline.
|
void |
println(int v)
Prints an integer followed by a newline.
|
void |
println(long v)
Prints a long followed by a newline.
|
void |
println(java.lang.Object v)
Writes an object followed by a newline.
|
void |
println(java.lang.String v)
Writes a string followed by a newline.
|
void |
write(char[] buf)
Writes a character buffer.
|
void |
write(char[] buf,
int offset,
int length)
Writes a character.
|
void |
write(int ch)
Writes a character.
|
void |
write(java.lang.String v)
Writes a string
|
void |
write(java.lang.String v,
int offset,
int length)
Writes a string
|
public StreamPrintWriter(WriteStream out)
public final void write(int ch)
write
in class java.io.PrintWriter
public final void write(char[] buf, int offset, int length)
write
in class java.io.PrintWriter
public final void write(char[] buf)
write
in class java.io.PrintWriter
public final void write(java.lang.String v)
write
in class java.io.PrintWriter
public final void write(java.lang.String v, int offset, int length)
write
in class java.io.PrintWriter
public final void print(char ch)
print
in class java.io.PrintWriter
public final void print(int v)
print
in class java.io.PrintWriter
public final void print(long v)
print
in class java.io.PrintWriter
public final void print(float v)
print
in class java.io.PrintWriter
v
- the value to printpublic final void print(double v)
print
in class java.io.PrintWriter
v
- the value to printpublic final void print(char[] v)
print
in class java.io.PrintWriter
public final void print(java.lang.String v)
print
in class java.io.PrintWriter
public final void print(java.lang.Object v)
print
in class java.io.PrintWriter
public final void println()
println
in class java.io.PrintWriter
public final void println(boolean v)
println
in class java.io.PrintWriter
v
- the value to printpublic final void println(char v)
println
in class java.io.PrintWriter
v
- the value to printpublic final void println(int v)
println
in class java.io.PrintWriter
v
- the value to printpublic final void println(long v)
println
in class java.io.PrintWriter
v
- the value to printpublic final void println(float v)
println
in class java.io.PrintWriter
v
- the value to printpublic final void println(double v)
println
in class java.io.PrintWriter
v
- the value to printpublic final void println(char[] v)
println
in class java.io.PrintWriter
public final void println(java.lang.String v)
println
in class java.io.PrintWriter
public final void println(java.lang.Object v)
println
in class java.io.PrintWriter
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.PrintWriter
public void flushBuffer()
flushBuffer
in interface FlushBuffer
public WriteStream getWriteStream()
getWriteStream
in interface EnclosedWriteStream
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.PrintWriter