com.uwyn.drone.core
Class TimedOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended bycom.uwyn.drone.core.TimedOutputStream

public class TimedOutputStream
extends FilterOutputStream


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
TimedOutputStream(OutputStream outputStream, int max, int amount, int interval)
           
 
Method Summary
 boolean addTimedOutputStreamListener(TimedOutputStreamListener listener)
           
 void close()
           
 void flush()
           
 boolean removeTimedOutputStreamListener(TimedOutputStreamListener listener)
           
 void write(byte[] bytes)
           
 void write(byte[] bytes, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedOutputStream

public TimedOutputStream(OutputStream outputStream,
                         int max,
                         int amount,
                         int interval)
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

write

public void write(byte[] bytes)
           throws IOException
Throws:
IOException

write

public void write(byte[] bytes,
                  int offset,
                  int length)
           throws IOException
Throws:
IOException

write

public void write(int b)
           throws IOException
Throws:
IOException

addTimedOutputStreamListener

public boolean addTimedOutputStreamListener(TimedOutputStreamListener listener)

removeTimedOutputStreamListener

public boolean removeTimedOutputStreamListener(TimedOutputStreamListener listener)


Copyright © 2002-2005 Uwyn bvba/sprl. All Rights Reserved.