com.gc.iotools.stream.is
Class SizeReaderInputStream

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
              extended by 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();
 

This class is deprecated and will be removed in 1.3 release. Please use StatsInputStream instead

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

SizeReaderInputStream

public SizeReaderInputStream(InputStream source)
Deprecated. 

SizeReaderInputStream

public SizeReaderInputStream(InputStream istream,
                             boolean fullReadOnClose)
Deprecated. 


Copyright © 2008-2009. All Rights Reserved.