com.northconcepts.datapipeline.meter
Class MeteredInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.northconcepts.datapipeline.meter.MeteredInputStream
- All Implemented Interfaces:
- Metered, Closeable
- Direct Known Subclasses:
- ThrottledInputStream
public class MeteredInputStream
- extends FilterInputStream
- implements Metered
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeteredInputStream
public MeteredInputStream(InputStream in)
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.