Class javax.servlet.ServletOutputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.servlet.ServletOutputStream

Object
   |
   +----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.

Version:
1.12, 04/15/98
See Also:
write(int)

Constructor Index

 o javax.servlet.ServletOutputStream()
The default constructor does no work.

Method Index

 o print(String)
Prints the string provided.
 o print(boolean)
Prints the boolean provided.
 o print(char)
Prints the character provided.
 o print(int)
Prints the integer provided.
 o print(long)
Prints the long provided.
 o print(float)
Prints the float provided.
 o print(double)
Prints the double provided.
 o println()
Prints a CRLF.
 o println(String)
Prints the string provided, followed by a CRLF.
 o println(boolean)
Prints the boolean provided, followed by a CRLF.
 o println(char)
Prints the character provided, followed by a CRLF.
 o println(int)
Prints the integer provided, followed by a CRLF.
 o println(long)
Prints the long provided, followed by a CRLF.
 o println(float)
Prints the float provided, followed by a CRLF.
 o println(double)
Prints the double provided, followed by a CRLF.

Constructors

 o ServletOutputStream
protected ServletOutputStream()
The default constructor does no work.

Methods

 o print
public void print(String s) throws IOException
Prints the string provided.

Throws: IOException
if an I/O error has occurred
 o print
public void print(boolean b) throws IOException
Prints the boolean provided.

Throws: IOException
if an I/O error has occurred.
 o print
public void print(char c) throws IOException
Prints the character provided.

Throws: IOException
if an I/O error has occurred
 o print
public void print(int i) throws IOException
Prints the integer provided.

Throws: IOException
if an I/O error has occurred
 o print
public void print(long l) throws IOException
Prints the long provided.

Throws: IOException
if an I/O error has occurred
 o print
public void print(float f) throws IOException
Prints the float provided.

Throws: IOException
if an I/O error has occurred
 o print
public void print(double d) throws IOException
Prints the double provided.

Throws: IOException
if an I/O error has occurred
 o println
public void println() throws IOException
Prints a CRLF.

Throws: IOException
if an I/O error has occurred
 o 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
 o 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.
 o 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
 o 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
 o 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
 o 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
 o 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