org.apache.jcs.admin
Class CountingOnlyOutputStream
java.lang.Object
java.io.OutputStream
org.apache.jcs.admin.CountingOnlyOutputStream
- public class CountingOnlyOutputStream
- extends java.io.OutputStream
Keeps track of the number of bytes written to it, but doesn't write them
anywhere.
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 |
CountingOnlyOutputStream
public 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.
- Returns:
Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.