public abstract class AbstractReadStrategy<T> extends java.lang.Object implements ReadStrategy<T>
| Constructor and Description |
|---|
AbstractReadStrategy(java.net.Socket socket) |
AbstractReadStrategy(java.net.Socket socket,
java.io.DataInputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown the reading
|
java.io.DataInputStream |
getStream()
Get the stream for reading in
|
void |
setStream(java.io.DataInputStream inStream)
Sets the stream.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic AbstractReadStrategy(java.net.Socket socket)
public AbstractReadStrategy(java.net.Socket socket,
java.io.DataInputStream stream)
public java.io.DataInputStream getStream()
ReadStrategygetStream in interface ReadStrategy<T>public void setStream(java.io.DataInputStream inStream)
ReadStrategysetStream in interface ReadStrategy<T>inStream - stream used to read frompublic void close()
throws java.io.IOException
ReadStrategyclose in interface ReadStrategy<T>java.io.IOException