com.tffenterprises.io
Interface AccountingInput

All Known Implementing Classes:
AccountingInputStream, ByteArrayInputStream

public interface AccountingInput

AccountingInput is an interface for InputStreams and files, such that the number of bytes that have been read or skipped is tallied and can be reported.

The procedure is simple: upon acquisition of a file or stream, an AccountingInput starts accounting such that the number of bytes that have been read or skipped in the stream (or file) can be returned.

Version:
1.0d1 $Date: 2000/06/20 02:52:24 $
Author:
Guillaume Lessard

Method Summary
 long consumed()
          Returns the number of bytes that have been consumed by the stream (or read/skipped in the file) since the AccountingInput instance was constructed.
 

Method Detail

consumed

long consumed()
Returns the number of bytes that have been consumed by the stream (or read/skipped in the file) since the AccountingInput instance was constructed.

Returns:
the number of bytes that have been consumed.