public class PrintWriterServletOutputStream
extends javax.servlet.ServletOutputStream
| Constructor and Description |
|---|
PrintWriterServletOutputStream(java.io.PrintWriter pO)
Deprecated.
since 1.0RC3; use PrintWriterServletOutputStream
Construct a ServletOutputStream that coordinates output using a base ServletOutputStream and a PrintWriter that is wrapped on top of that OutputStream. |
PrintWriterServletOutputStream(java.io.PrintWriter pw,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream
|
void |
flush()
Flushes the stream, writing any buffered output bytes
|
void |
print(java.lang.String pVal)
Prints a string.
|
void |
println()
Prints a CRLF
|
void |
println(java.lang.String pVal)
Prints an string followed by a CRLF.
|
void |
write(byte[] pBuf)
Writes an array of bytes
|
void |
write(byte[] pBuf,
int pOffset,
int pLength)
Writes a subarray of bytes
This implementation redirects it's input into the
underlying PrintWriter.
|
void |
write(int pVal)
Writes a single byte to the output stream
This implementation writes the byte to the
underlying PrintWriter.
|
public PrintWriterServletOutputStream(java.io.PrintWriter pO)
Construct a ServletOutputStream that coordinates output using a base ServletOutputStream and a PrintWriter that is wrapped on top of that OutputStream.
public PrintWriterServletOutputStream(java.io.PrintWriter pw,
java.lang.String encoding)
public void write(int pVal)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] pBuf)
throws java.io.IOException
write in class java.io.OutputStreampBuf - the array to be writtenjava.io.IOException - if an I/O error occurredpublic void write(byte[] pBuf,
int pOffset,
int pLength)
throws java.io.IOException
write in class java.io.OutputStreampBuf - the array to be writtenpOffset - the offset into the arraypLength - the number of bytes to writejava.io.IOException - if an I/O error occurredpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - if an I/O error occurredpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException - if an I/O error occurredpublic void print(java.lang.String pVal)
throws java.io.IOException
print in class javax.servlet.ServletOutputStreampVal - the String to be printedjava.io.IOException - if an I/O error has occurredpublic void println(java.lang.String pVal)
throws java.io.IOException
println in class javax.servlet.ServletOutputStreampVal - the String to be printedjava.io.IOException - if an I/O error has occurredpublic void println()
throws java.io.IOException
println in class javax.servlet.ServletOutputStreamjava.io.IOException - if an I/O error has occurredCopyright © 2003-2013 . All Rights Reserved.