public abstract class AbstractPrintWriter
extends java.io.PrintWriter
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrintWriter()
Creates the print writer.
|
Modifier and Type | Method and Description |
---|---|
void |
newLine()
Writes the newline character.
|
void |
print(boolean b)
Prints a boolean.
|
void |
print(char ch)
Prints a character.
|
void |
print(char[] s)
Prints a character array
|
void |
print(double d) |
void |
print(float f) |
void |
print(int i)
Prints an integer value.
|
void |
print(long v)
Prints a long value.
|
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 |
write(char[] buf)
Writes a char buffer to the output.
|
abstract void |
write(char[] buf,
int offset,
int length)
Writes a character array to the writer.
|
abstract void |
write(int ch)
Writes a character to the output.
|
void |
write(java.lang.String s)
Writes a string to the output.
|
abstract void |
write(java.lang.String s,
int off,
int len)
Writes a subsection of a string to the output.
|
public abstract void write(char[] buf, int offset, int length)
write
in class java.io.PrintWriter
buf
- the buffer to write.off
- the offset into the bufferlen
- the number of characters to writepublic abstract void write(int ch)
write
in class java.io.PrintWriter
buf
- the buffer to write.public abstract void write(java.lang.String s, int off, int len)
write
in class java.io.PrintWriter
public final void write(char[] buf)
write
in class java.io.PrintWriter
buf
- the buffer to write.public final void write(java.lang.String s)
write
in class java.io.PrintWriter
public void newLine()
public final void print(boolean b)
print
in class java.io.PrintWriter
public void print(char ch)
print
in class java.io.PrintWriter
public void print(int i)
print
in class java.io.PrintWriter
public void print(long v)
print
in class java.io.PrintWriter
public final void print(float f)
print
in class java.io.PrintWriter
public final void print(double d)
print
in class java.io.PrintWriter
public 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 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