public interface WriteStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream
|
java.io.DataOutputStream |
getStream()
Get the current output stream
|
void |
setStream(java.io.DataOutputStream outStream)
Sets the stream.
|
<T extends Sendable> |
write(T s)
Write data to socket
|
<T extends Sendable> void write(T s) throws java.io.IOException
T - Class of the object; however, must be Sendables - object to be written to socketjava.io.IOException - When there is an error writing to streamvoid close()
throws java.io.IOException
java.io.IOExceptionjava.io.DataOutputStream getStream()
void setStream(java.io.DataOutputStream outStream)
outStream - stream for writer