lejos.pc.comm
Class NXTCommLibnxt

java.lang.Object
  extended by lejos.pc.comm.NXTCommUSB
      extended by lejos.pc.comm.NXTCommLibnxt
All Implemented Interfaces:
lejos.internal.jni.JNIClass, NXTCommRequest, NXTComm

public class NXTCommLibnxt
extends NXTCommUSB
implements lejos.internal.jni.JNIClass

Implementation of NXTComm over USB using libnxt. Should not be used directly - use NXTCommFactory to create an appropriate NXTComm object for your system and the protocol you are using.


Field Summary
 
Fields inherited from interface lejos.pc.comm.NXTComm
LCP, PACKET, RAW
 
Constructor Summary
NXTCommLibnxt()
           
 
Method Summary
 boolean initialize(lejos.internal.jni.JNILoader jnil)
          Return false, if the
 
Methods inherited from class lejos.pc.comm.NXTCommUSB
available, close, finalize, getInputStream, getOutputStream, open, open, read, search, sendRequest, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXTCommLibnxt

public NXTCommLibnxt()
Method Detail

initialize

public boolean initialize(lejos.internal.jni.JNILoader jnil)
                   throws lejos.internal.jni.JNIException
Description copied from interface: lejos.internal.jni.JNIClass
Return false, if the

Specified by:
initialize in interface lejos.internal.jni.JNIClass
Parameters:
jnil - instance of JNILoader
Returns:
false, if the class is not suitable for this platform
Throws:
lejos.internal.jni.JNIException - if something went wrong loading the JNI library