com.caucho.vfs
Class AbstractPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by com.caucho.vfs.AbstractPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Direct Known Subclasses:
ResponseWriter

public abstract class AbstractPrintWriter
extends java.io.PrintWriter

An abstract print writer.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
protected AbstractPrintWriter()
          Creates the print writer.
 
Method Summary
 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.
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, printf, printf, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPrintWriter

protected AbstractPrintWriter()
Creates the print writer.

Method Detail

write

public abstract void write(char[] buf,
                           int offset,
                           int length)
Writes a character array to the writer.

Overrides:
write in class java.io.PrintWriter
Parameters:
buf - the buffer to write.
off - the offset into the buffer
len - the number of characters to write

write

public abstract void write(int ch)
Writes a character to the output.

Overrides:
write in class java.io.PrintWriter
Parameters:
buf - the buffer to write.

write

public abstract void write(java.lang.String s,
                           int off,
                           int len)
Writes a subsection of a string to the output.

Overrides:
write in class java.io.PrintWriter

write

public final void write(char[] buf)
Writes a char buffer to the output.

Overrides:
write in class java.io.PrintWriter
Parameters:
buf - the buffer to write.

write

public final void write(java.lang.String s)
Writes a string to the output.

Overrides:
write in class java.io.PrintWriter

newLine

public void newLine()
Writes the newline character.


print

public final void print(boolean b)
Prints a boolean.

Overrides:
print in class java.io.PrintWriter

print

public void print(char ch)
Prints a character.

Overrides:
print in class java.io.PrintWriter

print

public void print(int i)
Prints an integer value.

Overrides:
print in class java.io.PrintWriter

print

public void print(long v)
Prints a long value.

Overrides:
print in class java.io.PrintWriter

print

public final void print(float f)
Overrides:
print in class java.io.PrintWriter

print

public final void print(double d)
Overrides:
print in class java.io.PrintWriter

print

public final void print(char[] s)
Prints a character array

Overrides:
print in class java.io.PrintWriter

print

public final void print(java.lang.String s)
Prints a string.

Overrides:
print in class java.io.PrintWriter

print

public final void print(java.lang.Object v)
Prints the value of the object.

Overrides:
print in class java.io.PrintWriter

println

public void println()
Prints the newline.

Overrides:
println in class java.io.PrintWriter

println

public final void println(boolean v)
Prints the boolean followed by a newline.

Overrides:
println in class java.io.PrintWriter
Parameters:
v - the value to print

println

public final void println(char v)
Prints a character followed by a newline.

Overrides:
println in class java.io.PrintWriter
Parameters:
v - the value to print

println

public final void println(int v)
Prints an integer followed by a newline.

Overrides:
println in class java.io.PrintWriter
Parameters:
v - the value to print

println

public final void println(long v)
Prints a long followed by a newline.

Overrides:
println in class java.io.PrintWriter
Parameters:
v - the value to print

println

public final void println(float v)
Prints a float followed by a newline.

Overrides:
println in class java.io.PrintWriter
Parameters:
v - the value to print

println

public final void println(double v)
Prints a double followed by a newline.

Overrides:
println in class java.io.PrintWriter
Parameters:
v - the value to print

println

public final void println(char[] s)
Writes a character array followed by a newline.

Overrides:
println in class java.io.PrintWriter

println

public final void println(java.lang.String s)
Writes a string followed by a newline.

Overrides:
println in class java.io.PrintWriter

println

public final void println(java.lang.Object v)
Writes an object followed by a newline.

Overrides:
println in class java.io.PrintWriter