Package com.google.caliper.bridge
Class OpenedSocket.Writer
- java.lang.Object
-
- com.google.caliper.bridge.OpenedSocket.Writer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- OpenedSocket
public static final class OpenedSocket.Writer extends Object implements Closeable
Writes objects to the socket.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(Serializable... objects)Writes the given objects and then flushes to ensure they're fully sent to the other side of the connection.
-
-
-
Method Detail
-
write
public void write(Serializable... objects) throws IOException
Writes the given objects and then flushes to ensure they're fully sent to the other side of the connection.- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-