Package com.google.caliper.bridge
Class OpenedSocket.Reader
- java.lang.Object
-
- com.google.caliper.bridge.OpenedSocket.Reader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- OpenedSocket
public static final class OpenedSocket.Reader extends Object implements Closeable
Reads objects from the socket.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Serializableread()Returns the next object, ornullif we are at EOF.
-
-
-
Method Detail
-
read
public Serializable read() throws IOException
Returns the next object, ornullif we are at EOF.- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-