org.activeio.filter
Class WriteBufferedSyncChannel

java.lang.Object
  extended byorg.activeio.FilterSyncChannel
      extended byorg.activeio.filter.WriteBufferedSyncChannel
All Implemented Interfaces:
Channel, Disposable, InputSyncChannel, OutputChannel, Service, SyncChannel

public class WriteBufferedSyncChannel
extends FilterSyncChannel


Field Summary
 
Fields inherited from interface org.activeio.Service
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT
 
Constructor Summary
WriteBufferedSyncChannel(SyncChannel channel)
           
WriteBufferedSyncChannel(SyncChannel channel, Packet buffer)
           
WriteBufferedSyncChannel(SyncChannel channel, Packet buffer, boolean enableDirectWrites)
           
 
Method Summary
 void flush()
          Some channels may buffer data which may be sent down if flush() is called.
 void write(Packet packet)
          Sends a packet down the channel towards the media.
 
Methods inherited from class org.activeio.FilterSyncChannel
dispose, getNext, narrow, read, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteBufferedSyncChannel

public WriteBufferedSyncChannel(SyncChannel channel)

WriteBufferedSyncChannel

public WriteBufferedSyncChannel(SyncChannel channel,
                                Packet buffer)

WriteBufferedSyncChannel

public WriteBufferedSyncChannel(SyncChannel channel,
                                Packet buffer,
                                boolean enableDirectWrites)
Method Detail

write

public void write(Packet packet)
           throws IOException
Description copied from interface: OutputChannel
Sends a packet down the channel towards the media.

Specified by:
write in interface OutputChannel
Overrides:
write in class FilterSyncChannel
Throws:
IOException
See Also:
org.activeio.Channel#write(org.activeio.Packet)

flush

public void flush()
           throws IOException
Description copied from interface: OutputChannel
Some channels may buffer data which may be sent down if flush() is called.

Specified by:
flush in interface OutputChannel
Overrides:
flush in class FilterSyncChannel
Throws:
IOException
See Also:
org.activeio.Channel#flush()


Copyright © -2007 The ActiveIO Project. All Rights Reserved.