|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jSyncManager.API.Transport.SLPTransportInterface
org.jSyncManager.API.Transport.SerialTransportInterface
Serial Transport Abstract Class. This is a specific implementation of the SLPTransportInterface designed for use with serial ports. The HotSync protocol needs to be able to change the serial rate dynamically after negotiating the connection with the handheld, and thus requires an additional method over the standard SLPTransportInterface class. see SLPTransportInterface
| Field Summary | |
static int |
INITIAL_SERIAL_SPEED
The initial serial port rate of 9600bps. |
protected int |
serialSpeed
The desired maximum connection rate selected by the user. |
| Fields inherited from class org.jSyncManager.API.Transport.SLPTransportInterface |
configPanel, connected |
| Constructor Summary | |
SerialTransportInterface()
SerialTransportInterface constructor. |
|
| Method Summary | |
abstract int |
getPreferredSyncSpeed()
A method to retreive the users preferred sync speed. |
protected abstract void |
setSpeed(int speed)
Changes the speed of the underlying transport mechanism. |
void |
switchSpeed(boolean hiSpeed)
This method is called when it's time to switch serial speeds. |
| Methods inherited from class org.jSyncManager.API.Transport.SLPTransportInterface |
close, constructConfigPanel, flush, getConfigPanel, getResourceBundle, getResourceBundleName, getTransportDescription, getTransportExceptionText, getTransportName, initialize, initialize, isConnected, loadResourceBundle, open, readByte, setConnected, writeBytes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int INITIAL_SERIAL_SPEED
protected int serialSpeed
| Constructor Detail |
public SerialTransportInterface()
throws TransportException
Any - TransportException thrown by the parent class is rethrown by this constructor.
TransportException| Method Detail |
protected abstract void setSpeed(int speed)
throws TransportException
speed - - The speed to set the transport to.
TransportException - any exception the underlying code may throw.public abstract int getPreferredSyncSpeed()
public final void switchSpeed(boolean hiSpeed)
throws TransportException
hiSpeed - true if we need to switch to our highest speed, false to switch to the initialization speed.
TransportException - any exception the underlying code may throw.
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||