au.com.whitesquare.waf.filter
Class ByteCountingServletOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byau.com.whitesquare.waf.filter.ByteCountingServletOutputStream

public class ByteCountingServletOutputStream
extends ServletOutputStream


Last Modified $Date: 2006/05/15 05:50:35 $

Version:
$Revision: 1.4 $
Author:
Steve Mactaggart

Constructor Summary
ByteCountingServletOutputStream(ServletOutputStream passThrough)
           
 
Method Summary
 void flush()
           
 long getWrittenBytes()
          Returns the numeber of bytes written out the output stream.
 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
close, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCountingServletOutputStream

public ByteCountingServletOutputStream(ServletOutputStream passThrough)
Method Detail

write

public void write(int b)
           throws IOException
Throws:
IOException
See Also:
OutputStream.write(int)

flush

public void flush()
           throws IOException
Throws:
IOException
See Also:
OutputStream.flush()

getWrittenBytes

public long getWrittenBytes()
Returns the numeber of bytes written out the output stream.

Returns:
the number of bytes written to the stream.


Copyright © 2004 Whitesquare Software. All Rights Reserved.