|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.pc.comm.NXTCommFactory
public class NXTCommFactory
Creates a version of
appropriate to the OS in use and protocol
(Bluetooth or USB) that is requested.
NXTComm
Field Summary | |
---|---|
static int |
ALL_PROTOCOLS
Use either USB or Bluetooth for the connection. |
static int |
BLUETOOTH
Use Bluetooth for the connection |
static int |
USB
Use USB for the connection |
Constructor Summary | |
---|---|
NXTCommFactory()
|
Method Summary | |
---|---|
static NXTComm |
createNXTComm(int protocol)
Load a comms driver for a protocol (USB or Bluetooth) |
static java.util.Properties |
getNXJCache()
Load the Bluetooth name cache as properties |
static java.util.Properties |
getNXJProperties()
Load the leJOS NXJ properties |
static void |
saveNXJCache(java.util.Properties props,
java.lang.String comment)
Save the leJOS NXJ Properties |
static void |
saveNXJProperties(java.util.Properties props,
java.lang.String comment)
Save the leJOS NXJ Properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int USB
public static final int BLUETOOTH
public static final int ALL_PROTOCOLS
Constructor Detail |
---|
public NXTCommFactory()
Method Detail |
---|
public static NXTComm createNXTComm(int protocol) throws NXTCommException
protocol
- the protocol
NXTCommException
public static java.util.Properties getNXJProperties() throws NXTCommException
NXTCommException
public static java.util.Properties getNXJCache() throws NXTCommException
NXTCommException
public static void saveNXJProperties(java.util.Properties props, java.lang.String comment) throws java.io.IOException
props
- the complete set of propertiescomment
- a comment that is written to the file
java.io.IOException
public static void saveNXJCache(java.util.Properties props, java.lang.String comment) throws java.io.IOException
props
- the complete set of propertiescomment
- a comment that is written to the file
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |