public class ServletOutputStreamWrapper
extends javax.servlet.ServletOutputStream
| Constructor and Description |
|---|
ServletOutputStreamWrapper(Writer writer,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
static javax.servlet.ServletOutputStream |
getInstance(OutputStream stream)
Returns a facade of the specified stream.
|
static javax.servlet.ServletOutputStream |
getInstance(Writer writer,
String charset)
Returns a facade of the specified writer.
|
void |
write(int b) |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnwrite, writepublic static javax.servlet.ServletOutputStream getInstance(OutputStream stream)
public static javax.servlet.ServletOutputStream getInstance(Writer writer, String charset)
charset - the charset. If null, "UTF-8" is assumed.public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2021. All rights reserved.