com.gc.iotools.stream.is
Class SizeReaderInputStream
java.lang.Object
java.io.InputStream
com.gc.iotools.stream.is.StatsInputStream
com.gc.iotools.stream.is.SizeReaderInputStream
- All Implemented Interfaces:
- Closeable
Deprecated.
@Deprecated
public class SizeReaderInputStream
- extends StatsInputStream
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).
Since version 1.2.1 this class is deprecated and will be removed in 1.3
versions. Use StatsInputStream instead
Usage:
SizeReaderInputStream srIstream = new SizeReaderInputStream(originalStream);
//performs all the application operation on stream
performTasksOnStream(srIstream);
srIstream.close();
long size = srIstream.getSize();
- Since:
- 1.0.6
- Author:
- dvd.smnt
- See Also:
StatsInputStream
| Methods inherited from class com.gc.iotools.stream.is.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 |
SizeReaderInputStream
public SizeReaderInputStream(InputStream source)
- Deprecated.
SizeReaderInputStream
public SizeReaderInputStream(InputStream istream,
boolean fullReadOnClose)
- Deprecated.
Copyright © 2008-2009. All Rights Reserved.