com.northconcepts.datapipeline.meter
Class MeteredOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.northconcepts.datapipeline.meter.MeteredOutputStream
All Implemented Interfaces:
Metered, Closeable, Flushable
Direct Known Subclasses:
ThrottledOutputStream

public class MeteredOutputStream
extends FilterOutputStream
implements Metered


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
MeteredOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
 Meter getMeter()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeteredOutputStream

public MeteredOutputStream(OutputStream out)
Method Detail

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.