| |
|
| javax.servlet.ServletOutputStream org.apache.portals.gems.util.PrintWriterServletOutputStream
PrintWriterServletOutputStream | public class PrintWriterServletOutputStream extends ServletOutputStream (Code) | | This is a specialized class implementing a ServletOutputStream that works in
conjunction with a PrintWriter to send data to the browser. It is used when
a J2EE server throws an IllegalStateException when you call getOutputStream
on a response which someone has previously called getWriter on.
|
Method Summary | |
public void | close() | public void | flush() | public void | print(String pVal) Prints a string. | public void | println(String pVal) Prints an string followed by a CRLF. | public void | println() | public void | write(int pVal) Writes a single byte to the output stream
This implementation writes the byte to the
underlying PrintWriter. | public void | write(byte[] pBuf) | public void | write(byte[] pBuf, int pOffset, int pLength) Writes a subarray of bytes
This implementation redirects it's input into the
underlying PrintWriter. |
mPrintWriter | PrintWriter mPrintWriter(Code) | | The PrintWriter that is wrapped on top of the base input stream
|
PrintWriterServletOutputStream | public PrintWriterServletOutputStream(PrintWriter pO)(Code) | | |
flush | public void flush() throws IOException(Code) | | Flushes the stream, writing any buffered output bytes
exception: IOException - if an I/O error occurred |
print | public void print(String pVal) throws IOException(Code) | | Prints a string.
Parameters: pVal - the String to be printed exception: IOException - if an I/O error has occurred |
println | public void println(String pVal) throws IOException(Code) | | Prints an string followed by a CRLF.
Parameters: pVal - the String to be printed exception: IOException - if an I/O error has occurred |
write | public void write(int pVal) throws IOException(Code) | | Writes a single byte to the output stream
This implementation writes the byte to the
underlying PrintWriter.
|
write | public void write(byte[] pBuf) throws IOException(Code) | | Writes an array of bytes
Parameters: pBuf - the array to be written exception: IOException - if an I/O error occurred |
write | public void write(byte[] pBuf, int pOffset, int pLength) throws IOException(Code) | | Writes a subarray of bytes
This implementation redirects it's input into the
underlying PrintWriter.
Parameters: pBuf - the array to be written Parameters: pOffset - the offset into the array Parameters: pLength - the number of bytes to write exception: IOException - if an I/O error occurred |
|
|
|