lejos.nxt.comm
Class NXTComm

java.lang.Object
  extended by lejos.nxt.comm.NXTComm

public class NXTComm
extends Object

Initiates communication to a remote NXT. Used by NXTCommand to implement the Lego Communications Protocol (LCP).


Constructor Summary
NXTComm()
           
 
Method Summary
 void close()
           
 boolean open(String name)
           
 byte[] readData()
           
 void sendData(byte[] data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

NXTComm

public NXTComm()
Method Detail

open

public boolean open(String name)
             throws IOException
Throws:
IOException

sendData

public void sendData(byte[] data)
              throws IOException
Throws:
IOException

readData

public byte[] readData()
                throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException