public class SocketWriteStrategy extends AbstractWriteStrategy
| Constructor and Description |
|---|
SocketWriteStrategy(java.net.Socket socket) |
SocketWriteStrategy(java.net.Socket socket,
java.io.DataOutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Sendable s)
Write data to socket
|
close, getStream, setStreampublic SocketWriteStrategy(java.net.Socket socket)
public SocketWriteStrategy(java.net.Socket socket,
java.io.DataOutputStream stream)
public void write(Sendable s) throws java.io.IOException
WriteStrategys - object to be written to socketjava.io.IOException - When there is an error writing to stream