com.northconcepts.datapipeline.meter
Class MeteredInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.northconcepts.datapipeline.meter.MeteredInputStream
All Implemented Interfaces:
Metered, Closeable
Direct Known Subclasses:
ThrottledInputStream

public class MeteredInputStream
extends FilterInputStream
implements Metered


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MeteredInputStream(InputStream in)
           
 
Method Summary
 void close()
           
 Meter getMeter()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeteredInputStream

public MeteredInputStream(InputStream in)
Method Detail

getMeter

public Meter getMeter()
Specified by:
getMeter in interface Metered

read

public int read()
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class FilterInputStream
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class FilterInputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterInputStream
Throws:
IOException


Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.