ioio.lib.impl
Class FlowControlledOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by ioio.lib.impl.FlowControlledOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class FlowControlledOutputStream
extends java.io.OutputStream


Constructor Summary
FlowControlledOutputStream(ioio.lib.impl.FlowControlledOutputStream.Sender sender, int maxPacket)
           
 
Method Summary
 void close()
           
 void flush()
           
 void kill()
           
 void readyToSend(int numBytes)
           
 void write(int oneByte)
           
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowControlledOutputStream

public FlowControlledOutputStream(ioio.lib.impl.FlowControlledOutputStream.Sender sender,
                                  int maxPacket)
Method Detail

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int oneByte)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

readyToSend

public void readyToSend(int numBytes)

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream

kill

public void kill()