org.springframework.integration.ip.tcp
Interface SocketWriter

All Known Implementing Classes:
AbstractSocketWriter, NetSocketWriter, NioSocketWriter

public interface SocketWriter

A general interface for writing to sockets.

Author:
Gary Russell

Method Summary
 void write(byte[] bytes)
          Write the entire buffer to the underlying socket.
 

Method Detail

write

void write(byte[] bytes)
           throws java.io.IOException
Write the entire buffer to the underlying socket. Appropriate wire protocols will be implemented so the receiving side can decode and reassemble the message, if packetized by the network.

Parameters:
bytes - The bytes to write.
Throws:
java.io.IOException