public class ServletOutputStreamWrapper
extends javax.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 javax.servlet.ServletOutputStream |
getInstance(java.io.OutputStream stream)
Returns a facade of the specified stream.
|
static javax.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 javax.servlet.ServletOutputStream getInstance(java.io.OutputStream stream)
public static javax.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-2011 Potix Corporation. All Rights Reserved.