org.apache.jcs.admin.servlet
Class JCSAdminServlet.CountingOnlyOutputStream
java.lang.Object
java.io.OutputStream
org.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
|
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 |
count
private int count
JCSAdminServlet.CountingOnlyOutputStream
private JCSAdminServlet.CountingOnlyOutputStream()
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.