org.activeio.filter
Class WriteBufferedSyncChannel
java.lang.Object
org.activeio.FilterSyncChannel
org.activeio.filter.WriteBufferedSyncChannel
- All Implemented Interfaces:
- Channel, Disposable, InputSyncChannel, OutputChannel, Service, SyncChannel
- public class WriteBufferedSyncChannel
- extends FilterSyncChannel
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. |
WriteBufferedSyncChannel
public WriteBufferedSyncChannel(SyncChannel channel)
WriteBufferedSyncChannel
public WriteBufferedSyncChannel(SyncChannel channel,
Packet buffer)
WriteBufferedSyncChannel
public WriteBufferedSyncChannel(SyncChannel channel,
Packet buffer,
boolean enableDirectWrites)
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.