Home » apache-tomcat-6.0.26-src » javax » servlet » [javadoc | source]
javax.servlet
abstract public class: ServletOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      javax.servlet.ServletOutputStream

All Implemented Interfaces:
    Closeable, Flushable

Direct Known Subclasses:
    NoBodyOutputStream

Provides an output stream for sending binary data to the client. A ServletOutputStream object is normally retrieved via the ServletResponse#getOutputStream method.

This is an abstract class that the servlet container implements. Subclasses of this class must implement the java.io.OutputStream.write(int) method.

Constructor:
 protected ServletOutputStream() 
Method from javax.servlet.ServletOutputStream Summary:
print,   print,   print,   print,   print,   print,   print,   println,   println,   println,   println,   println,   println,   println,   println
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.servlet.ServletOutputStream Detail:
 public  void print(String s) throws IOException 
    Writes a String to the client, without a carriage return-line feed (CRLF) character at the end.
 public  void print(boolean b) throws IOException 
    Writes a boolean value to the client, with no carriage return-line feed (CRLF) character at the end.
 public  void print(char c) throws IOException 
    Writes a character to the client, with no carriage return-line feed (CRLF) at the end.
 public  void print(int i) throws IOException 
    Writes an int to the client, with no carriage return-line feed (CRLF) at the end.
 public  void print(long l) throws IOException 
    Writes a long value to the client, with no carriage return-line feed (CRLF) at the end.
 public  void print(float f) throws IOException 
    Writes a float value to the client, with no carriage return-line feed (CRLF) at the end.
 public  void print(double d) throws IOException 
    Writes a double value to the client, with no carriage return-line feed (CRLF) at the end.
 public  void println() throws IOException 
    Writes a carriage return-line feed (CRLF) to the client.
 public  void println(String s) throws IOException 
    Writes a String to the client, followed by a carriage return-line feed (CRLF).
 public  void println(boolean b) throws IOException 
    Writes a boolean value to the client, followed by a carriage return-line feed (CRLF).
 public  void println(char c) throws IOException 
    Writes a character to the client, followed by a carriage return-line feed (CRLF).
 public  void println(int i) throws IOException 
    Writes an int to the client, followed by a carriage return-line feed (CRLF) character.
 public  void println(long l) throws IOException 
    Writes a long value to the client, followed by a carriage return-line feed (CRLF).
 public  void println(float f) throws IOException 
    Writes a float value to the client, followed by a carriage return-line feed (CRLF).
 public  void println(double d) throws IOException 
    Writes a double value to the client, followed by a carriage return-line feed (CRLF).