com.caucho.jsp
Class JspPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by com.caucho.jsp.JspPrintWriter
All Implemented Interfaces:
FlushBuffer, java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class JspPrintWriter
extends java.io.PrintWriter
implements FlushBuffer

A buffered JSP writer encapsulating a Writer.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Method Summary
 void clear()
           
 void close()
           
 void flush()
          Flushes the buffer and the writer.
 void flushBuffer()
          Flushes the buffer and the writer.
 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)
          Prints a double.
 void print(float f)
          Prints a float
 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 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.
 void write(char[] buf, int offset, int length)
          Writes a character array to the writer.
 void write(int ch)
          Writes a character to the output.
 void write(java.lang.String s)
          Writes a string to the output.
 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, format, format, printf, printf, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public final 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 final 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 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

write

public final 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

newLine

public final 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 final void print(char ch)
Prints a character.

Overrides:
print in class java.io.PrintWriter

print

public final void print(int v)
Prints an integer.

Overrides:
print in class java.io.PrintWriter

print

public final void print(long v)
Prints a long

Overrides:
print in class java.io.PrintWriter

print

public final void print(float f)
Prints a float

Overrides:
print in class java.io.PrintWriter

print

public final void print(double d)
Prints a double.

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 final 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

flushBuffer

public void flushBuffer()
Flushes the buffer and the writer.

Specified by:
flushBuffer in interface FlushBuffer

flush

public void flush()
Flushes the buffer and the writer.

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.PrintWriter

clear

public final void clear()

close

public final void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.PrintWriter