public class JavaObjectReadStrategy extends AbstractReadStrategy<Request>
| Constructor and Description |
|---|
JavaObjectReadStrategy(java.net.Socket socket) |
JavaObjectReadStrategy(java.net.Socket socket,
java.io.DataInputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
Request |
read()
Read in data
|
close, getStream, setStreampublic JavaObjectReadStrategy(java.net.Socket socket)
public JavaObjectReadStrategy(java.net.Socket socket,
java.io.DataInputStream stream)
public Request read() throws java.io.IOException, java.lang.ClassNotFoundException
ReadStrategyjava.io.IOException - when there is an error with connectionjava.lang.ClassNotFoundException - When a object is sent and not found