org.riotfamily.common.web.util
Class DelegatingServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.riotfamily.common.web.util.DelegatingServletOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class DelegatingServletOutputStream
- extends ServletOutputStream
ServletOutputStream that delegates all methods to a regular
OutputStream
.
- Author:
- Felix Gnass [fgnass at neteye dot de]
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingServletOutputStream
public DelegatingServletOutputStream(OutputStream targetStream)
- Create a new DelegatingServletOutputStream.
- Parameters:
targetStream
- the target OutputStream
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException