|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Transport.SLPTransportInterface | +--org.jSyncManager.Transport.DebugTransport
A transport wrapper used for debugging purposes. This wrapper can be used by the SLP protocol stack to wrap the data I/O routines to dump the incoming and outgoing byte data to stdout. Note that applications shouldn't try to instantiate this class -- it won't work.
Field Summary | |
---|---|
protected int |
count
A value to hold the incoming byte count. |
protected SLPTransportInterface |
realTransport
A handle to the transport class we're wrapping. |
Fields inherited from class org.jSyncManager.API.Transport.SLPTransportInterface |
---|
configPanel, connected |
Constructor Summary | |
---|---|
DebugTransport(SLPTransportInterface transport)
Constructs a new Debug Transport. |
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.SLPTransportInterface |
---|
getConfigPanel, getResourceBundle, isConnected, loadResourceBundle, setConnected |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
protected SLPTransportInterface realTransport
protected int count
Constructor Detail |
public DebugTransport(SLPTransportInterface transport) throws TransportException
TransportException
- thrown by the parent class if there is an initialization error.Method Detail |
public void close() throws TransportException
close
in class SLPTransportInterface
TransportException
- throws any required exception.public void flush() throws TransportException
flush
in class SLPTransportInterface
thrown
- when a problem occurs with flushing the stream.public java.lang.String getTransportName()
getTransportName
in class SLPTransportInterface
public void open() throws TransportException
open
in class SLPTransportInterface
TransportException
- any exception the underlying code may throw.public byte readByte()
readByte
in class SLPTransportInterface
public void writeBytes(byte[] data)
writeBytes
in class SLPTransportInterface
data
- 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 SLPTransportInterface
TransportException
- 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 SLPTransportInterface
properties
- 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 SLPTransportInterface
ex
- the TransportInitException to be inspected.public java.lang.String getResourceBundleName()
getResourceBundleName
in class SLPTransportInterface
public java.lang.String getTransportDescription()
getTransportDescription
in class SLPTransportInterface
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |