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.
ServletResponse
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final ResourceBundle |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public abstract boolean | Returns: true if data can be written without blocking, otherwise returns false.Returns |
| public void | |
| public void | print(boolean
the b)boolean value to send to the clientWrites a |
| public void | print(char
the character to send to the client c)Writes a character to the client, with no carriage return-line feed (CRLF) at the end. |
| public void | print(int
the int to send to the client i)Writes an int to the client, with no carriage return-line feed (CRLF) at the end. |
| public void | print(long
the l)long value to send to the clientWrites a |
| public void | print(float
the f)float value to send to the clientWrites a |
| public void | print(double
the d)double value to send to the clientWrites a |
| public void | |
| public void | |
| public void | println(boolean
the b)boolean value to write to the clientWrites a |
| public void | println(char
the character to write to the client c)Writes a character to the client, followed by a carriage return-line feed (CRLF). |
| public void | println(int
the int to write to the client i)Writes an int to the client, followed by a carriage return-line feed (CRLF) character. |
| public void | println(long
the l)long value to write to the clientWrites a |
| public void | println(float
the f)float value to write to the clientWrites a |
| public void | println(double
the d)double value to write to the clientWrites a |
| public abstract void | setWriteListener(WriteListener
the writeListener)WriteListener that should be notified when it's possible to writeInstructs the |
| public void | write(ByteBuffer
The buffer from which the data is written. buffer)Writes from the given buffer to the output stream. |
| LSTRING_FILE | back to summary |
|---|---|
| private static final String LSTRING_FILE | |
| lStrings | back to summary |
|---|---|
| private static final ResourceBundle lStrings | |
| ServletOutputStream | back to summary |
|---|---|
| protected ServletOutputStream() Does nothing, because this is an abstract class. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
If this method is called when the output stream is in non-blocking mode, it will immediately return with the stream
effectively closed, even if the stream contains buffered data that is yet to be written to client. The container will
write this data out in the background. If this process fails the
| |
| isReady | back to summary |
|---|---|
| public abstract boolean isReady() Returns
If this method returns
| |
| back to summary | |
|---|---|
| public void print(String s) throws IOException Writes a
| |
| back to summary | |
|---|---|
| public void print(boolean b) throws IOException Writes a
| |
| back to summary | |
|---|---|
| public void print(char c) throws IOException Writes a character to the client, with no carriage return-line feed (CRLF) at the end.
| |
| back to summary | |
|---|---|
| public void print(int i) throws IOException Writes an int to the client, with no carriage return-line feed (CRLF) at the end.
| |
| back to summary | |
|---|---|
| public void print(long l) throws IOException Writes a
| |
| back to summary | |
|---|---|
| public void print(float f) throws IOException Writes a
| |
| back to summary | |
|---|---|
| public void print(double d) throws IOException Writes a
| |
| println | back to summary |
|---|---|
| public void println() throws IOException Writes a carriage return-line feed (CRLF) to the client.
| |
| println | back to summary |
|---|---|
| public void println(String s) throws IOException Writes a
| |
| println | back to summary |
|---|---|
| public void println(boolean b) throws IOException Writes a
| |
| println | back to summary |
|---|---|
| public void println(char c) throws IOException Writes a character to the client, followed by a carriage return-line feed (CRLF).
| |
| println | back to summary |
|---|---|
| public void println(int i) throws IOException Writes an int to the client, followed by a carriage return-line feed (CRLF) character.
| |
| println | back to summary |
|---|---|
| public void println(long l) throws IOException Writes a
| |
| println | back to summary |
|---|---|
| public void println(float f) throws IOException Writes a
| |
| println | back to summary |
|---|---|
| public void println(double d) throws IOException Writes a
| |
| setWriteListener | back to summary |
|---|---|
| public abstract void setWriteListener(WriteListener writeListener) Instructs the
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buffer) throws IOException Writes from the given buffer to the output stream.
If the output steam is in non-blocking mode, before each invocation of this method
Otherwise, if this method is called when
If the output stream is in non-blocking mode, neither the position, limit nor content of the buffer passed to this
method may be modified until a subsequent call to
If the output stream is in blocking mode and Subclasses are strongly encouraged to override this method and provide a more efficient implementation.
| |