Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.sample.servlet.util » [javadoc | source]
org.apache.cactus.sample.servlet.util
public class: FilterServletOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      javax.servlet.ServletOutputStream
         org.apache.cactus.sample.servlet.util.FilterServletOutputStream

All Implemented Interfaces:
    Closeable, Flushable

Helper class to help write filters that manipulates the output stream. This is because normally, the ServletOutputStream cannot be modified after a resource has committed it. Note: This code was adapted from the Filter tutorial found href="http://www.orionserver.com/tutorials/filters/lesson3/"> here
Constructor:
 public FilterServletOutputStream(OutputStream theOutput) 
    Constructor.
    Parameters:
    theOutput - the output stream that we wrap in a DataOutputStream in order to hold the data
Method from org.apache.cactus.sample.servlet.util.FilterServletOutputStream Summary:
write,   write,   write
Methods from javax.servlet.ServletOutputStream:
print,   print,   print,   print,   print,   print,   print,   println,   println,   println,   println,   println,   println,   println,   println
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.sample.servlet.util.FilterServletOutputStream Detail:
 public  void write(int theData) throws IOException 
 public  void write(byte[] theData) throws IOException 
 public  void write(byte[] theData,
    int theOffset,
    int theLength) throws IOException