Arquillian Warp Extension: Implementation 1.0.0.Alpha1

org.jboss.arquillian.warp.server.filter
Class NonWritingServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by 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

Constructor Summary
NonWritingServletOutputStream()
           
 
Method Summary
 void close()
           
 void finallyWriteAndClose(javax.servlet.ServletOutputStream delegate)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 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
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonWritingServletOutputStream

public NonWritingServletOutputStream()
Method Detail

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

Arquillian Warp Extension: Implementation 1.0.0.Alpha1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.