|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--javax.servlet.ServletOutputStream
Used to write output from a Servlet to the client.
Servlet engines should provide a subclass of ServletOutputStream that
implements OutputStream.write(int)
.
Note that I (MJW) do not understand how the print
methods work
when the stream uses something else then a simple ASCII character encoding.
It seems saver to use ServletResponse.getWriter()
for all
output that is not binary.
Constructor Summary | |
protected |
ServletOutputStream()
|
Method Summary | |
void |
print(boolean value)
Writes a boolean. |
void |
print(char value)
Writes a single char. |
void |
print(double value)
Writes a double. |
void |
print(float value)
Writes a float. |
void |
print(int value)
Writes an int. |
void |
print(long value)
Writes a long. |
void |
print(java.lang.String value)
Writes a String. |
void |
println()
Writes a CRLF. |
void |
println(boolean value)
Writes a boolean followed by a CRLF. |
void |
println(char value)
Writes a single char followed by a CRLF. |
void |
println(double value)
Writes a double followed by a CRLF. |
void |
println(float value)
Writes a float followed by a CRLF. |
void |
println(int value)
Writes an int followed by a CRLF. |
void |
println(long value)
Writes a long followed by a CRLF. |
void |
println(java.lang.String value)
Writes a String followed by a CRLF. |
Methods inherited from class java.io.OutputStream |
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ServletOutputStream()
Method Detail |
public void print(java.lang.String value) throws java.io.IOException
value
- the String to be printedjava.io.IOException
- if an I/O exception occurspublic void print(boolean value) throws java.io.IOException
value
- the boolean to be printedjava.io.IOException
- if an I/O exception occurspublic void print(char value) throws java.io.IOException
value
- the char to be printedjava.io.IOException
- if an I/O exception occurspublic void print(int value) throws java.io.IOException
value
- the int to be printedjava.io.IOException
- if an I/O exception occurspublic void print(long value) throws java.io.IOException
value
- the long to be printedjava.io.IOException
- if an I/O exception occurspublic void print(float value) throws java.io.IOException
value
- the float to be printedjava.io.IOException
- if an I/O exception occurspublic void print(double value) throws java.io.IOException
value
- the double to be printedjava.io.IOException
- if an I/O exception occurspublic void println() throws java.io.IOException
java.io.IOException
- if an I/O exception occurspublic void println(java.lang.String value) throws java.io.IOException
value
- the String to be printedjava.io.IOException
- if an I/O exception occurspublic void println(boolean value) throws java.io.IOException
value
- the boolean to be printedjava.io.IOException
- if an I/O exception occurspublic void println(char value) throws java.io.IOException
value
- the char to be printedjava.io.IOException
- if an I/O exception occurspublic void println(int value) throws java.io.IOException
value
- the int to be printedjava.io.IOException
- if an I/O exception occurspublic void println(long value) throws java.io.IOException
value
- the long to be printedjava.io.IOException
- if an I/O exception occurspublic void println(float value) throws java.io.IOException
value
- the float to be printedjava.io.IOException
- if an I/O exception occurspublic void println(double value) throws java.io.IOException
value
- the double to be printedjava.io.IOException
- if an I/O exception occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |