|
||||||||||
| 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
com.gc.iotools.stream.is.SizeReaderInputStream
@Deprecated public class SizeReaderInputStream
Counts the bytes of the InputStream passed in the constructor.
It can be used to determine the size of a document passed as a stream. This
is possible only after the stream has been fully processed (by other parts of
the application).
Usage:
SizeReaderInputStream srIstream = new SizeReaderInputStream(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
StatsInputStream instead
StatsInputStream| Constructor Summary | |
|---|---|
SizeReaderInputStream(InputStream source)
Deprecated. |
|
SizeReaderInputStream(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 SizeReaderInputStream(InputStream source)
public SizeReaderInputStream(InputStream istream,
boolean fullReadOnClose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||