com.gc.iotools.stream.is
Class StatsInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.gc.iotools.stream.is.inspection.StatsInputStream
          extended by com.gc.iotools.stream.is.StatsInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
SizeReaderInputStream

Deprecated.

@Deprecated
public class StatsInputStream
extends 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

Since:
1.2.1
Author:
dvd.smnt
See Also:
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

StatsInputStream

public StatsInputStream(InputStream istream,
                        boolean fullReadOnClose)
Deprecated. 

StatsInputStream

public StatsInputStream(InputStream source)
Deprecated. 


Copyright © 2008-2009. All Rights Reserved.