org.jboss.arquillian.warp.server.filter
Class NonWritingServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.jboss.arquillian.warp.server.filter.NonWritingServletOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class NonWritingServletOutputStream
- extends javax.servlet.ServletOutputStream
The implementation ServletOutputStream which caches all the written input and writes only when
finallyWriteAndClose(ServletOutputStream) method is called.
- Author:
- Lukas Fryc
| 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 |
NonWritingServletOutputStream
public NonWritingServletOutputStream()
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException
finallyWriteAndClose
public void finallyWriteAndClose(javax.servlet.ServletOutputStream delegate)
throws IOException
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.