Class: javax.servlet.ServletOutputStream
- public abstract class ServletOutputStream
- extends java.io.OutputStream
Provides an output stream for sending binary data to the
client. A
ServletOutputStream object is normally retrieved
via the javax.servlet.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.
Inheritance
Superclass tree:- java.lang.Object
- java.io.OutputStream
- javax.servlet.ServletOutputStream
Methods
-
ServletOutputStreamtop
protected ServletOutputStream()Does nothing, because this is an abstract class. -
printtop
public void print(char c) throws IOExceptionWrites a character to the client, with no carriage return-line feed (CRLF) at the end. -
printtop
public void print(double d) throws IOExceptionWrites adoublevalue to the client, with no carriage return-line feed (CRLF) at the end. -
printtop
public void print(float f) throws IOExceptionWrites afloatvalue to the client, with no carriage return-line feed (CRLF) at the end. -
printtop
public void print(int i) throws IOExceptionWrites an int to the client, with no carriage return-line feed (CRLF) at the end. -
printtop
public void print(long l) throws IOExceptionWrites alongvalue to the client, with no carriage return-line feed (CRLF) at the end. -
printtop
public void print(String s) throws IOExceptionWrites aStringto the client, without a carriage return-line feed (CRLF) character at the end. -
printtop
public void print(boolean b) throws IOExceptionWrites abooleanvalue to the client, with no carriage return-line feed (CRLF) character at the end. -
printlntop
public void println() throws IOExceptionWrites a carriage return-line feed (CRLF) to the client. -
printlntop
public void println(char c) throws IOExceptionWrites a character to the client, followed by a carriage return-line feed (CRLF). -
printlntop
public void println(double d) throws IOExceptionWrites adoublevalue to the client, followed by a carriage return-line feed (CRLF). -
printlntop
public void println(float f) throws IOExceptionWrites afloatvalue to the client, followed by a carriage return-line feed (CRLF). -
printlntop
public void println(int i) throws IOExceptionWrites an int to the client, followed by a carriage return-line feed (CRLF) character. -
printlntop
public void println(long l) throws IOExceptionWrites alongvalue to the client, followed by a carriage return-line feed (CRLF). -
printlntop
public void println(String s) throws IOExceptionWrites aStringto the client, followed by a carriage return-line feed (CRLF). -
printlntop
public void println(boolean b) throws IOExceptionWrites abooleanvalue to the client, followed by a carriage return-line feed (CRLF).
