| |
|
| javax.servlet.ServletOutputStream org.apache.pluto.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.
|
Constructor Summary | |
public | PrintWriterServletOutputStream(PrintWriter pO) Construct a ServletOutputStream that coordinates output using a base
ServletOutputStream and a PrintWriter that is wrapped on top of that
OutputStream. |
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(byte[] pBuf) | public void | write(int pVal) | public void | write(byte[] pBuf, int pOffset, int pLength) |
mPrintWriter | PrintWriter mPrintWriter(Code) | | The PrintWriter that is wrapped on top of the base input stream
|
PrintWriterServletOutputStream | public PrintWriterServletOutputStream(PrintWriter pO)(Code) | | Construct a ServletOutputStream that coordinates output using a base
ServletOutputStream and a PrintWriter that is wrapped on top of that
OutputStream.
|
flush | public void flush() throws IOException(Code) | | Flushes the stream, writing any buffered output bytes
throws: 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 throws: 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 throws: IOException - if an I/O error has occurred |
write | public void write(byte[] pBuf) throws IOException(Code) | | Writes an array of bytes
Parameters: pBuf - the array to be written throws: IOException - if an I/O error occurred |
write | public void write(int pVal) throws IOException(Code) | | Writes a single byte to the output stream
|
write | public void write(byte[] pBuf, int pOffset, int pLength) throws IOException(Code) | | Writes a subarray of bytes
Parameters: pBuf - the array to be written Parameters: pOffset - the offset into the array Parameters: pLength - the number of bytes to write throws: IOException - if an I/O error occurred |
|
|
|