javax.servlet
Class ServletOutputStream

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

public abstract class ServletOutputStream
extends java.io.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:
OutputStream.write(int)

Constructor Summary
protected ServletOutputStream()
          The default constructor does no work.
 
Method Summary
 void print(boolean b)
          Prints the boolean provided.
 void print(char c)
          Prints the character provided.
 void print(double d)
          Prints the double provided.
 void print(float f)
          Prints the float provided.
 void print(int i)
          Prints the integer provided.
 void print(long l)
          Prints the long provided.
 void print(java.lang.String s)
          Prints the string provided.
 void println()
          Prints a CRLF.
 void println(boolean b)
          Prints the boolean provided, followed by a CRLF.
 void println(char c)
          Prints the character provided, followed by a CRLF.
 void println(double d)
          Prints the double provided, followed by a CRLF.
 void println(float f)
          Prints the float provided, followed by a CRLF.
 void println(int i)
          Prints the integer provided, followed by a CRLF.
 void println(long l)
          Prints the long provided, followed by a CRLF.
 void println(java.lang.String s)
          Prints the string provided, 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

ServletOutputStream

protected ServletOutputStream()
The default constructor does no work.
Method Detail

print

public void print(java.lang.String s)
           throws java.io.IOException
Prints the string provided.
Throws:
java.io.IOException - if an I/O error has occurred

print

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

print

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

print

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

print

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

print

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

print

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

println

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

println

public void println(java.lang.String s)
             throws java.io.IOException
Prints the string provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred

println

public void println(boolean b)
             throws java.io.IOException
Prints the boolean provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred.

println

public void println(char c)
             throws java.io.IOException
Prints the character provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred

println

public void println(int i)
             throws java.io.IOException
Prints the integer provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred

println

public void println(long l)
             throws java.io.IOException
Prints the long provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred

println

public void println(float f)
             throws java.io.IOException
Prints the float provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred

println

public void println(double d)
             throws java.io.IOException
Prints the double provided, followed by a CRLF.
Throws:
java.io.IOException - if an I/O error has occurred