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.
|
boolean |
isReady() |
void |
setWriteListener(jakarta.servlet.WriteListener writeListener) |
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 OutputStreamIOExceptionpublic boolean isReady()
isReady in class jakarta.servlet.ServletOutputStreampublic void setWriteListener(jakarta.servlet.WriteListener writeListener)
setWriteListener in class jakarta.servlet.ServletOutputStreamCopyright © 2025. All rights reserved.