|
|||||||||
| Home >> All >> org >> mortbay >> jetty >> [ servlet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mortbay.jetty.servlet
Class ServletWriter

java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.mortbay.jetty.servlet.ServletWriter
- class ServletWriter
- extends java.io.PrintWriter
Servlet PrintWriter. This writer can be disabled. It is crying out for optimization.
- Version:
- $Revision: 1.12 $
| Field Summary | |
(package private) java.lang.String |
encoding
|
private static org.apache.commons.logging.Log |
log
|
(package private) java.io.OutputStream |
os
|
(package private) boolean |
written
|
| Fields inherited from class java.io.PrintWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
(package private) |
ServletWriter(java.io.OutputStream os)
|
(package private) |
ServletWriter(java.io.OutputStream os,
java.lang.String encoding)
|
| Method Summary | |
void |
disable()
|
boolean |
isWritten()
|
void |
print(boolean p)
This methods prints a boolean value to the stream. |
void |
print(char p)
This method prints a char to the stream. |
void |
print(char[] p)
This method prints an array of characters to the stream. |
void |
print(double p)
This method prints a double to the stream. |
void |
print(float p)
This method prints a float to the stream. |
void |
print(int p)
This method prints an integer to the stream. |
void |
print(long p)
This method prints a long to the stream. |
void |
print(java.lang.Object p)
This method prints an Object to the stream. |
void |
print(java.lang.String p)
This method prints a String to the stream. |
void |
println()
This method prints a line separator sequence to the stream. |
void |
println(boolean p)
This methods prints a boolean value to the stream. |
void |
println(char p)
This method prints a char to the stream. |
void |
println(char[] p)
This method prints an array of characters to the stream. |
void |
println(double p)
This method prints a double to the stream. |
void |
println(float p)
This method prints a float to the stream. |
void |
println(int p)
This method prints an integer to the stream. |
void |
println(long p)
This method prints a long to the stream. |
void |
println(java.lang.Object p)
This method prints an Object to the stream. |
void |
println(java.lang.String p)
This method prints a String to the stream. |
void |
reset()
|
void |
write(char[] cbuf)
This method write all the chars in the specified array to the output. |
void |
write(char[] cbuf,
int off,
int len)
This method writes count chars from the specified array
starting at index offset into the array. |
void |
write(int c)
This method writes a single char to the stream. |
void |
write(java.lang.String s)
This method writes the contents of the specified String
to the underlying stream. |
void |
write(java.lang.String s,
int off,
int len)
This method writes count chars from the specified
String to the output starting at character position
offset into the String |
| Methods inherited from class java.io.PrintWriter |
checkError, close, flush, setError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
encoding
java.lang.String encoding
os
java.io.OutputStream os
written
boolean written
| Constructor Detail |
ServletWriter
ServletWriter(java.io.OutputStream os) throws java.io.IOException
ServletWriter
ServletWriter(java.io.OutputStream os, java.lang.String encoding) throws java.io.IOException
| Method Detail |
disable
public void disable()
reset
public void reset()
isWritten
public boolean isWritten()
public void print(boolean p)
- Description copied from class:
java.io.PrintWriter - This methods prints a boolean value to the stream.
truevalues are printed as "true" andfalsevalues are printed as "false".
public void print(char p)
- Description copied from class:
java.io.PrintWriter - This method prints a char to the stream. The actual value printed is
determined by the character encoding in use.
public void print(char[] p)
- Description copied from class:
java.io.PrintWriter - This method prints an array of characters to the stream. The actual
value printed depends on the system default encoding.
public void print(double p)
- Description copied from class:
java.io.PrintWriter - This method prints a double to the stream. The value printed is
determined using the
String.valueOf()method.
public void print(float p)
- Description copied from class:
java.io.PrintWriter - This method prints a float to the stream. The value printed is
determined using the
String.valueOf()method.
public void print(int p)
- Description copied from class:
java.io.PrintWriter - This method prints an integer to the stream. The value printed is
determined using the
String.valueOf()method.
public void print(long p)
- Description copied from class:
java.io.PrintWriter - This method prints a long to the stream. The value printed is
determined using the
String.valueOf()method.
public void print(java.lang.Object p)
- Description copied from class:
java.io.PrintWriter - This method prints an
Objectto the stream. The actual value printed is determined by calling theString.valueOf()method.
public void print(java.lang.String p)
- Description copied from class:
java.io.PrintWriter - This method prints a
Stringto the stream. The actual value printed depends on the system default encoding.
println
public void println()
- Description copied from class:
java.io.PrintWriter - This method prints a line separator sequence to the stream. The value
printed is determined by the system property
line.separator and is not necessarily the Unix '\n' newline character.
println
public void println(boolean p)
- Description copied from class:
java.io.PrintWriter - This methods prints a boolean value to the stream.
truevalues are printed as "true" andfalsevalues are printed as "false". This method prints a line termination sequence after printing the value.
println
public void println(char p)
- Description copied from class:
java.io.PrintWriter - This method prints a char to the stream. The actual value printed is
determined by the character encoding in use.
This method prints a line termination sequence after printing the value.
println
public void println(char[] p)
- Description copied from class:
java.io.PrintWriter - This method prints an array of characters to the stream. The actual
value printed depends on the system default encoding.
This method prints a line termination sequence after printing the value.
println
public void println(double p)
- Description copied from class:
java.io.PrintWriter - This method prints a double to the stream. The value printed is
determined using the
String.valueOf()method. This method prints a line termination sequence after printing the value.
println
public void println(float p)
- Description copied from class:
java.io.PrintWriter - This method prints a float to the stream. The value printed is
determined using the
String.valueOf()method. This method prints a line termination sequence after printing the value.
println
public void println(int p)
- Description copied from class:
java.io.PrintWriter - This method prints an integer to the stream. The value printed is
determined using the
String.valueOf()method. This method prints a line termination sequence after printing the value.
println
public void println(long p)
- Description copied from class:
java.io.PrintWriter - This method prints a long to the stream. The value printed is
determined using the
String.valueOf()method. This method prints a line termination sequence after printing the value.
println
public void println(java.lang.Object p)
- Description copied from class:
java.io.PrintWriter - This method prints an
Objectto the stream. The actual value printed is determined by calling theString.valueOf()method. This method prints a line termination sequence after printing the value.
println
public void println(java.lang.String p)
- Description copied from class:
java.io.PrintWriter - This method prints a
Stringto the stream. The actual value printed depends on the system default encoding. This method prints a line termination sequence after printing the value.
write
public void write(int c)
- Description copied from class:
java.io.PrintWriter - This method writes a single char to the stream.
write
public void write(char[] cbuf,
int off,
int len)
- Description copied from class:
java.io.PrintWriter - This method writes
countchars from the specified array starting at indexoffsetinto the array.
write
public void write(char[] cbuf)
- Description copied from class:
java.io.PrintWriter - This method write all the chars in the specified array to the output.
write
public void write(java.lang.String s, int off, int len)
- Description copied from class:
java.io.PrintWriter - This method writes
countchars from the specifiedStringto the output starting at character positionoffsetinto theString
write
public void write(java.lang.String s)
- Description copied from class:
java.io.PrintWriter - This method writes the contents of the specified
Stringto the underlying stream.
|
|||||||||
| Home >> All >> org >> mortbay >> jetty >> [ servlet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC