|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.apache.jcs.admin.CountingOnlyOutputStream
public class CountingOnlyOutputStream
Keeps track of the number of bytes written to it, but doesn't write them anywhere.
Constructor Summary | |
---|---|
CountingOnlyOutputStream()
|
Method Summary | |
---|---|
int |
getCount()
The number of bytes that have passed through this stream. |
void |
write(byte[] b)
count as we write. |
void |
write(byte[] b,
int off,
int len)
count as we write. |
void |
write(int b)
count as we write. |
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 |
Constructor Detail |
---|
public CountingOnlyOutputStream()
Method Detail |
---|
public void write(byte[] b) throws IOException
write
in class OutputStream
b
-
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- off
- len
-
IOException
public void write(int b) throws IOException
write
in class OutputStream
b
-
IOException
public int getCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |