Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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(int)

Constructor Summary
 ServletOutputStream()
The default constructor does no work.
 

Method Summary
void  print(String s)
Prints the string provided.
void  print(boolean b)
Prints the boolean provided.
void  print(char c)
 
void  print(int i)
Prints the integer provided.
void  print(long l)
Prints the long provided.
void  print(float f)
Prints the float provided.
void  print(double d)
Prints the double provided.
void  println()
Prints a CRLF.
void  println(String s)
Prints the string provided, followed by a CRLF.
void  println(boolean b)
Prints the boolean provided, followed by a CRLF.
void  println(char c)
 
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(float f)
Prints the float provided, followed by a CRLF.
void  println(double d)
Prints the double 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(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

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

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

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.