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

Class java.servlet.ServletOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.servlet.ServletOutputStream

public class ServletOutputStream
extends OutputStream
An output stream for writing servlet responses.

Constructor Index

 o ServletOutputStream()

Method Index

 o print(int)
Prints an integer.
 o print(long)
Prints a long integer.
 o print(String)
Prints an ASCII string.
 o println()
Prints a CRLF.
 o println(int)
Prints an integer followed by a CRLF.
 o println(long)
Prints a long integer followed by a CRLF.
 o println(String)
Prints an ASCII string followed by a CRLF.

Constructors

 o ServletOutputStream
  public ServletOutputStream()

Methods

 o print
  public abstract void print(String s) throws IOException
Prints an ASCII string.
Parameters:
s - the string to be printed
Throws: IOException
if an I/O error has occurred
 o print
  public abstract void print(int i) throws IOException
Prints an integer.
Parameters:
i - the integer to be printed
Throws: IOException
if an I/O error has occurred
 o print
  public abstract void print(long l) throws IOException
Prints a long integer.
Parameters:
l - the long integer to be printed
Throws: IOException
if an I/O error has occurred
 o println
  public abstract void println(String s) throws IOException
Prints an ASCII string followed by a CRLF.
Parameters:
s - the string to be printed
Throws: IOException
if an I/O error has occurred
 o println
  public abstract void println(int i) throws IOException
Prints an integer followed by a CRLF.
Parameters:
i - the integer to be printed.
Throws: IOException
if an I/O error has occurred
 o println
  public abstract void println(long l) throws IOException
Prints a long integer followed by a CRLF.
Parameters:
i - the long integer to be printed.
Throws: IOException
if an I/O error has occurred
 o println
  public abstract void println() throws IOException
Prints a CRLF.
Throws: IOException
if an I/O error has occurred

All Packages  Class Hierarchy  This Package  Previous  Next  Index