|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
long consumed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |