|
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
org.jSyncManager.Transport.JSerialTransport
JSerial Transport implementation of the J-HotSync SLPTransport Interface. This class defines the transport interface based on the J-HotSync Protocol stack's SLPTransportInterface Interface, providing hardware serial port access through the Java Serial Handler, written by Brad BARCLAY.
| Field Summary | |
protected javax.swing.JComboBox |
comSelectBox
A combo box to hold the communications port names. |
protected java.lang.String |
portName
The name of the port selected for I/O. |
protected javax.swing.JComboBox |
speedSelectBox
A combo box to hold the serial port speeds. |
| Fields inherited from class org.jSyncManager.API.Transport.SerialTransportInterface |
INITIAL_SERIAL_SPEED, serialSpeed |
| Fields inherited from class org.jSyncManager.API.Transport.SLPTransportInterface |
configPanel, connected |
| Constructor Summary | |
JSerialTransport()
Construct a new instance of the JSerial Transport. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Method that is called whenever an action is performed. |
void |
close()
Closes the JSerial Transport. |
protected javax.swing.JPanel |
constructConfigPanel()
Constructs the configuration JPanel for this transport. |
void |
flush()
Flushes the input buffer of any remaining data. |
int |
getPreferredSyncSpeed()
Retreives the preferred (user-specified) sync speed to use with this transport. |
java.lang.String |
getResourceBundleName()
Retreives the resource bundle name for use with this transport. |
java.lang.String |
getTransportDescription()
Retreives the description for this transport. |
java.lang.String |
getTransportExceptionText(org.jSyncManager.API.Transport.TransportException ex)
Retreives descripitive text for a given transport exception. |
java.lang.String |
getTransportName()
Returns the name of this J-Serial implementation. |
void |
initialize()
Initializes this transport. |
void |
initialize(java.util.Properties properties,
int id)
Initializes this transport from a properties object. |
void |
open()
Opens a read/write connection to the JSerial Transport. |
byte |
readByte()
Read a single byte from the underlying data stream. |
protected void |
setSpeed(int speed)
Changes the speed of the serial port. |
void |
writeBytes(byte[] data)
Write an array of bytes to the underlying data stream. |
| Methods inherited from class org.jSyncManager.API.Transport.SerialTransportInterface |
switchSpeed |
| Methods inherited from class org.jSyncManager.API.Transport.SLPTransportInterface |
getConfigPanel, getResourceBundle, isConnected, loadResourceBundle, setConnected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient javax.swing.JComboBox comSelectBox
protected transient javax.swing.JComboBox speedSelectBox
protected java.lang.String portName
| Constructor Detail |
public JSerialTransport()
throws org.jSyncManager.API.Transport.TransportException
org.jSyncManager.API.Transport.TransportException - thrown if any problems occur during construction.| Method Detail |
public void close()
throws org.jSyncManager.API.Transport.TransportException
org.jSyncManager.API.Transport.TransportException - this just throws any exceptions that occur during closure.
public void flush()
throws org.jSyncManager.API.Transport.TransportException
org.jSyncManager.API.Transport.TransportException - thrown when a problem occurs with flushing the stream.public java.lang.String getTransportName()
public void open()
throws org.jSyncManager.API.Transport.TransportException
org.jSyncManager.API.Transport.TransportException - throws any exceptions encountered while opening the port.public byte readByte()
protected void setSpeed(int speed)
throws org.jSyncManager.API.Transport.TransportException
speed - The speed to set the transport to.
org.jSyncManager.API.Transport.TransportException - any exception encountered while setting the speed is rethrown.public void writeBytes(byte[] data)
data - the array of bytes to be written.protected javax.swing.JPanel constructConfigPanel()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - the action that was performed.
public void initialize()
throws org.jSyncManager.API.Transport.TransportException
org.jSyncManager.API.Transport.TransportException - thrown if any initialization problems occur.
public void initialize(java.util.Properties properties,
int id)
throws org.jSyncManager.API.Transport.TransportException
properties - the Properties object containing the settings for this transport.id - the ID number for this transports settings.
org.jSyncManager.API.Transport.TransportException - thrown if any initialization problems occur.public java.lang.String getTransportExceptionText(org.jSyncManager.API.Transport.TransportException ex)
ex - the TransportException to examine.
public java.lang.String getResourceBundleName()
public java.lang.String getTransportDescription()
public int getPreferredSyncSpeed()
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||