org.apache.jcs.admin.servlet
Class JCSAdminServlet.CountingOnlyOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.jcs.admin.servlet.JCSAdminServlet.CountingOnlyOutputStream
Enclosing class:
JCSAdminServlet

private static class JCSAdminServlet.CountingOnlyOutputStream
extends java.io.OutputStream

Keeps track of the number of bytes written to it, but doesn't write them anywhere.


Field Summary
private  int count
           
 
Constructor Summary
private JCSAdminServlet.CountingOnlyOutputStream()
           
 
Method Summary
 int getCount()
          The number of bytes that have passed through this stream.
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private int count
Constructor Detail

JCSAdminServlet.CountingOnlyOutputStream

private JCSAdminServlet.CountingOnlyOutputStream()
Method Detail

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

getCount

public int getCount()
The number of bytes that have passed through this stream.