public class ServletOutputStreamWrapper
extends jakarta.servlet.ServletOutputStream
| Constructor and Description |
|---|
ServletOutputStreamWrapper(Writer writer,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
static jakarta.servlet.ServletOutputStream |
getInstance(OutputStream stream)
Returns a facade of the specified stream.
|
static jakarta.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 jakarta.servlet.ServletOutputStream getInstance(OutputStream stream)
public static jakarta.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 © 2023. All rights reserved.