|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.gc.iotools.stream.is.inspection.StatsInputStream
com.gc.iotools.stream.is.StatsInputStream
@Deprecated public class StatsInputStream
Gather some statistics of the InputStream passed in the
constructor.
It can be used to read:
Full statistics are available after the stream has been fully processed (by other parts of the application), or after invoking the method StatsInputStream.close() while partial statistics are available on the fly.
Usage:
StatsInputStream srIstream = new StatsInputStream(originalStream); //performs all the application operation on stream performTasksOnStream(srIstream); srIstream.close(); long size = srIstream.getSize();
This class is deprecated and will be removed in 1.3 release. Please use com.gc.iotools.stream.is.inspection.StatsInputStream instead
StatsInputStream| Constructor Summary | |
|---|---|
StatsInputStream(InputStream source)
Deprecated. |
|
StatsInputStream(InputStream istream,
boolean fullReadOnClose)
Deprecated. |
|
| Method Summary |
|---|
| Methods inherited from class com.gc.iotools.stream.is.inspection.StatsInputStream |
|---|
available, close, getBitRate, getBitRateString, getSize, getTime, getTime, isFullReadOnClose, mark, markSupported, read, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatsInputStream(InputStream istream,
boolean fullReadOnClose)
public StatsInputStream(InputStream source)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||