public class ServletOutputStreamWrapper extends ServletOutputStream
Modifier and Type | Field and Description |
---|---|
protected String |
m_characterEncoding |
protected OutputStream |
m_wrapped |
Constructor and Description |
---|
ServletOutputStreamWrapper() |
ServletOutputStreamWrapper(OutputStream wrapped) |
ServletOutputStreamWrapper(OutputStream wrapped,
String characterEncoding) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
String |
getCharacterEncoding() |
OutputStream |
getWrapped() |
boolean |
isReady() |
void |
print(char c) |
void |
print(String s) |
void |
println(char c) |
void |
println(String s) |
void |
setCharacterEncoding(String characterEncoding) |
void |
setWrapped(OutputStream wrapped) |
void |
setWriteListener(WriteListener listener) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected OutputStream m_wrapped
protected String m_characterEncoding
public ServletOutputStreamWrapper()
public ServletOutputStreamWrapper(OutputStream wrapped)
public ServletOutputStreamWrapper(OutputStream wrapped, String characterEncoding)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void print(char c) throws IOException
print
in class ServletOutputStream
IOException
public void print(String s) throws IOException
print
in class ServletOutputStream
IOException
public void println(char c) throws IOException
println
in class ServletOutputStream
IOException
public void println(String s) throws IOException
println
in class ServletOutputStream
IOException
public OutputStream getWrapped()
public void setWrapped(OutputStream wrapped)
public String getCharacterEncoding()
public void setCharacterEncoding(String characterEncoding)
public boolean isReady()
isReady
in class ServletOutputStream
public void setWriteListener(WriteListener listener)
setWriteListener
in class ServletOutputStream