org.zkoss.web.servlet
Class ServletOutputStreamWrapper
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.zkoss.web.servlet.ServletOutputStreamWrapper
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class ServletOutputStreamWrapper
- extends javax.servlet.ServletOutputStream
A facade of OutputStream for implementing ServletOutputStream.
- Author:
- tomyeh
Method Summary |
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)
|
Methods inherited from class javax.servlet.ServletOutputStream |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println |
Methods inherited from class java.io.OutputStream |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletOutputStreamWrapper
public ServletOutputStreamWrapper(java.io.Writer writer,
java.lang.String charset)
- Parameters:
charset
- the charset. If null, "UTF-8" is assumed.
getInstance
public static javax.servlet.ServletOutputStream getInstance(java.io.OutputStream stream)
- Returns a facade of the specified stream.
getInstance
public static javax.servlet.ServletOutputStream getInstance(java.io.Writer writer,
java.lang.String charset)
- Returns a facade of the specified writer.
- Parameters:
charset
- the charset. If null, "UTF-8" is assumed.
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
- Throws:
java.io.IOException
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.