|
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.USBTransportInterface
org.jSyncManager.Transport.TCPSocketTransport
TCP Socket-based Transport. This class provides the transport code for TCP Socket access.
| Field Summary | |
static int |
LISTENER_PORT
|
| Fields inherited from class org.jSyncManager.API.Transport.USBTransportInterface |
CLIE_VENDOR_ID, HANDSPRING_DEVICE_IDS, HANDSPRING_TREO_ID, HANDSPRING_VENDOR_ID, HANDSPRING_VISOR_ID, PALM_DEVICE_IDS, PALM_I705_ID, PALM_M100_ID, PALM_M125_ID, PALM_M130_ID, PALM_M500_ID, PALM_M505_ID, PALM_M515_ID, PALM_TUNGSTEN_T_ID, PALM_TUNGSTEN_Z_ID, PALM_VENDOR_ID, PALM_ZIRE_ID, SAMSUNG_DEVICE_IDS, SAMSUNG_SCH_I330_ID, SAMSUNG_VENDOR_ID, SONY_CLIE_3_5_ID, SONY_CLIE_4_0_ID, SONY_CLIE_4_1_ID, SONY_CLIE_NX60_ID, SONY_CLIE_NZ90V_ID, SONY_CLIE_S360_ID, SONY_DEVICE_IDS |
| Fields inherited from class org.jSyncManager.API.Transport.SLPTransportInterface |
configPanel, connected |
| Constructor Summary | |
TCPSocketTransport()
|
|
| Method Summary | |
void |
close()
Closes the implemented transport. |
protected javax.swing.JPanel |
constructConfigPanel()
Constructs this transports configuration panel. |
void |
flush()
Flushes the input buffer of any remaining data. |
java.lang.String |
getResourceBundleName()
Returns the fully-qualified classname for the resources package to use for this transport. |
java.lang.String |
getTransportDescription()
Returns the description for this Transport Interface. |
java.lang.String |
getTransportExceptionText(TransportException ex)
Retrieves error information for a given TransportInitException. |
java.lang.String |
getTransportName()
Returns the name of this Transport Interface. |
void |
initialize()
Initialize the port. |
void |
initialize(java.util.Properties properties,
int id)
Initialize the port. |
void |
open()
Opens a read/write connection to the implemented transport. |
byte |
readByte()
Read a single byte from the underlying data stream. |
void |
writeBytes(byte[] data)
Write an array of bytes to the underlying data stream. |
| Methods inherited from class org.jSyncManager.API.Transport.USBTransportInterface |
isKnownPDA |
| 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 |
public static final int LISTENER_PORT
| Constructor Detail |
public TCPSocketTransport()
throws TransportException
| Method Detail |
public void close()
throws TransportException
close in class SLPTransportInterfaceTransportException - throws any required exception.
public void flush()
throws TransportException
flush in class SLPTransportInterfacethrown - when a problem occurs with flushing the stream.
TransportExceptionpublic java.lang.String getTransportName()
getTransportName in class SLPTransportInterface
public void open()
throws TransportException
open in class SLPTransportInterfaceTransportException - any exception the underlying code may throw.public byte readByte()
readByte in class SLPTransportInterfacepublic void writeBytes(byte[] data)
writeBytes in class SLPTransportInterfacedata - the bytes to be written to the underlying stream.protected javax.swing.JPanel constructConfigPanel()
constructConfigPanel in class SLPTransportInterface
public void initialize()
throws TransportException
initialize in class SLPTransportInterfaceTransportException - thrown if there isn't sufficient info to setup the transport,
or if another exception has occurred.
public void initialize(java.util.Properties properties,
int id)
throws TransportException
initialize in class SLPTransportInterfaceproperties - a reference to the properties file containing configuration information.id - the transport ID number to load data for.
TransportException - if there is a problem initializing the transport.public java.lang.String getTransportExceptionText(TransportException ex)
getTransportExceptionText in class SLPTransportInterfaceex - the TransportInitException to be inspected.
public java.lang.String getResourceBundleName()
getResourceBundleName in class SLPTransportInterfacepublic java.lang.String getTransportDescription()
getTransportDescription in class SLPTransportInterface
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||