public class Connection extends Object implements AutoCloseable
| Constructor and Description |
|---|
Connection(Socket socket,
BufferedReader in,
BufferedWriter out) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(String cmd) |
void |
close() |
Iterable<Device> |
devices() |
Poll |
poll() |
<T> T |
recieve(Class<T> clazz) |
Version |
version() |
net.anwiba.commons.lang.object.ObjectPair<Devices,Watch> |
watch(boolean enable,
String deviceName) |
public Connection(Socket socket, BufferedReader in, BufferedWriter out)
public net.anwiba.commons.lang.object.ObjectPair<Devices,Watch> watch(boolean enable, String deviceName) throws IOException
IOExceptionpublic Iterable<Device> devices() throws IOException
IOExceptionpublic Version version() throws IOException
IOExceptionpublic Poll poll() throws IOException
IOExceptionpublic <T> T recieve(Class<T> clazz) throws IOException
IOExceptionpublic void call(String cmd) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2007–2017 Andreas W. Bartels. All rights reserved.