|
||||||||||
| 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 java.io.IOException
write in class java.io.OutputStreamb -
java.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - off - len -
java.io.IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb -
java.io.IOExceptionpublic int getCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||