> how you can couting input/ouput stream.
> it's with commons-vfs?
>
No, you just create your own CountingInputStream, maybe best by inherit
from FilterInputStream, override the read(...) methods and add the
number of bytes read to a counter.
On the first read(...) you store the System.currentTimeMillis() and
later you can use both informations (nuof read bytes and time) to
calculate a bandwith.

The same goes for OutputStream.

Actually there some in IO already

http://jakarta.apache.org/commons/io/api-release/org/apache/commons/io/input/CountingInputStream.html

cheers
--
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to