public class ServletOutputStreamWrapper
extends jakarta.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 jakarta.servlet.ServletOutputStream |
getInstance(java.io.OutputStream stream)
Returns a facade of the specified stream.
|
static jakarta.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 jakarta.servlet.ServletOutputStream getInstance(java.io.OutputStream stream)
public static jakarta.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.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
Copyright © 2005-2022 Potix Corporation. All Rights Reserved.