All Packages Class Hierarchy This Package Previous Next Index
Class javax.servlet.ServletOutputStream
java.lang.Object
|
+----java.io.OutputStream
|
+----javax.servlet.ServletOutputStream
- public abstract class ServletOutputStream
- extends OutputStream
An output stream for writing servlet responses. This is an
abstract class, to be implemented by a network services
implementor. Servlet writers use the output stream to return data
to clients. They access it via the ServletResponse's
getOutputStream method, available from within the servlet's service
method. Subclasses of ServletOutputStream must provide an
implementation of the write(int) method.
- See Also:
- write
-
ServletOutputStream()
- The default constructor does no work.
-
print(boolean)
- Prints the boolean provided.
-
print(char)
- Prints the character provided.
-
print(double)
- Prints the double provided.
-
print(float)
- Prints the float provided.
-
print(int)
- Prints the integer provided.
-
print(long)
- Prints the long provided.
-
print(String)
- Prints the string provided.
-
println()
- Prints a CRLF.
-
println(boolean)
- Prints the boolean provided, followed by a CRLF.
-
println(char)
- Prints the character provided, followed by a CRLF.
-
println(double)
- Prints the double provided, followed by a CRLF.
-
println(float)
- Prints the float provided, followed by a CRLF.
-
println(int)
- Prints the integer provided, followed by a CRLF.
-
println(long)
-
Prints the long provided, followed by a CRLF.
-
println(String)
- Prints the string provided, followed by a CRLF.
ServletOutputStream
protected ServletOutputStream()
- The default constructor does no work.
print
public void print(String s) throws IOException
- Prints the string provided.
- Throws: IOException
- if an I/O error has occurred
print
public void print(boolean b) throws IOException
- Prints the boolean provided.
- Throws: IOException
- if an I/O error has occurred.
print
public void print(char c) throws IOException
- Prints the character provided.
- Throws: IOException
- if an I/O error has occurred
print
public void print(int i) throws IOException
- Prints the integer provided.
- Throws: IOException
- if an I/O error has occurred
print
public void print(long l) throws IOException
- Prints the long provided.
- Throws: IOException
- if an I/O error has occurred
print
public void print(float f) throws IOException
- Prints the float provided.
- Throws: IOException
- if an I/O error has occurred
print
public void print(double d) throws IOException
- Prints the double provided.
- Throws: IOException
- if an I/O error has occurred
println
public void println() throws IOException
- Prints a CRLF.
- Throws: IOException
- if an I/O error has occurred
println
public void println(String s) throws IOException
- Prints the string provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred
println
public void println(boolean b) throws IOException
- Prints the boolean provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred.
println
public void println(char c) throws IOException
- Prints the character provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred
println
public void println(int i) throws IOException
- Prints the integer provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred
println
public void println(long l) throws IOException
- Prints the long provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred
println
public void println(float f) throws IOException
- Prints the float provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred
println
public void println(double d) throws IOException
- Prints the double provided, followed by a CRLF.
- Throws: IOException
- if an I/O error has occurred
All Packages Class Hierarchy This Package Previous Next Index