com.northconcepts.datapipeline.meter
Class MeteredOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.northconcepts.datapipeline.meter.MeteredOutputStream
- All Implemented Interfaces:
- Metered, Closeable, Flushable
- Direct Known Subclasses:
- ThrottledOutputStream
public class MeteredOutputStream
- extends FilterOutputStream
- implements Metered
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeteredOutputStream
public MeteredOutputStream(OutputStream out)
getMeter
public Meter getMeter()
- Specified by:
getMeter in interface Metered
write
public void write(int b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterOutputStream
- Throws:
IOException
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.