public class ServletOutputStreamWrapper
extends javax.servlet.ServletOutputStream
| Constructor and Description |
|---|
ServletOutputStreamWrapper(java.io.Writer writer,
java.lang.String charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
static javax.servlet.ServletOutputStream |
getInstance(java.io.OutputStream stream)
Returns a facade of the specified stream.
|
static javax.servlet.ServletOutputStream |
getInstance(java.io.Writer writer,
java.lang.String charset)
Returns a facade of the specified writer.
|
void |
write(int b) |
public ServletOutputStreamWrapper(java.io.Writer writer,
java.lang.String charset)
charset - the charset. If null, "UTF-8" is assumed.public static javax.servlet.ServletOutputStream getInstance(java.io.OutputStream stream)
public static javax.servlet.ServletOutputStream getInstance(java.io.Writer writer,
java.lang.String charset)
charset - the charset. If null, "UTF-8" is assumed.public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2005-2011 Potix Corporation. All Rights Reserved.