public class SocketConnection extends NXTConnection
LCP, PACKET, RAW
Constructor and Description |
---|
SocketConnection(java.net.Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(byte[] buf,
int length) |
int |
read(byte[] buf,
int length,
boolean b) |
int |
write(byte[] buffer,
int numBytes) |
openDataInputStream, openDataOutputStream, openInputStream, openOutputStream
public void close() throws java.io.IOException
close
in interface Connection
close
in class NXTConnection
java.io.IOException
public int read(byte[] buf, int length)
read
in class NXTConnection
public int write(byte[] buffer, int numBytes)
write
in class NXTConnection
public int read(byte[] buf, int length, boolean b)
read
in class NXTConnection