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