public class PrintWriterImpl extends java.io.PrintWriter implements FlushBuffer
Constructor and Description |
---|
PrintWriterImpl()
Creates a new PrintWriterImpl
|
PrintWriterImpl(java.io.Writer out)
Creates a new PrintWriterImpl
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush()
Flushes the writer.
|
void |
flushBuffer()
Flushes the writer.
|
void |
print(char ch)
Prints a character.
|
void |
print(char[] s)
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 i)
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 s)
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[] s)
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 s)
Writes a string followed by a newline.
|
void |
setWriter(java.io.Writer out)
Sets the underlying writer.
|
void |
write(char ch)
Writes a character.
|
void |
write(char[] buf)
Writes a character buffer.
|
void |
write(char[] buf,
int offset,
int length)
Writes a character.
|
public PrintWriterImpl()
public PrintWriterImpl(java.io.Writer out)
public void setWriter(java.io.Writer out)
public final void write(char ch)
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 print(char ch)
print
in class java.io.PrintWriter
public final void print(int i)
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[] s)
print
in class java.io.PrintWriter
public final void print(java.lang.String s)
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[] s)
println
in class java.io.PrintWriter
public final void println(java.lang.String s)
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 void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.PrintWriter