portcomms
Class SerialPortCommsStepLock

java.lang.Object
  extended by portcomms.OpenCommPort
      extended by portcomms.CommPortModem
          extended by portcomms.SerialPortCommsStepLock

public class SerialPortCommsStepLock
extends CommPortModem

Dial a phone using the Java Communications Package.


Field Summary
 
Fields inherited from class portcomms.CommPortModem
debug, rxData
 
Fields inherited from class portcomms.OpenCommPort
BAUD, BITS_PER_SECOND_LIST, commPortID, FLOWCONTROL_HARDWARE, FLOWCONTROL_NONE, FLOWCONTROL_XONXOFF, inputStream, outputStream, parent, response, SERIALPORT_OPEN_TIMEOUTSECONDS, thePort
 
Constructor Summary
SerialPortCommsStepLock()
           
SerialPortCommsStepLock(java.lang.String portName)
           
 
Method Summary
protected  void converse()
          This method will be overridden by non-trivial subclasses to hold a conversation.
static void main(java.lang.String[] ap)
           
 
Methods inherited from class portcomms.CommPortModem
readSerial, send
 
Methods inherited from class portcomms.OpenCommPort
getCommPortName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialPortCommsStepLock

public SerialPortCommsStepLock()
                        throws java.io.IOException,
                               gnu.io.NoSuchPortException,
                               gnu.io.PortInUseException,
                               gnu.io.UnsupportedCommOperationException
Throws:
java.io.IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException

SerialPortCommsStepLock

public SerialPortCommsStepLock(java.lang.String portName)
                        throws java.io.IOException,
                               gnu.io.NoSuchPortException,
                               gnu.io.PortInUseException,
                               gnu.io.UnsupportedCommOperationException
Throws:
java.io.IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
Method Detail

converse

protected void converse()
                 throws java.io.IOException
Description copied from class: OpenCommPort
This method will be overridden by non-trivial subclasses to hold a conversation.

Overrides:
converse in class OpenCommPort
Throws:
java.io.IOException

main

public static void main(java.lang.String[] ap)
                 throws java.io.IOException,
                        gnu.io.NoSuchPortException,
                        gnu.io.PortInUseException,
                        gnu.io.UnsupportedCommOperationException
Throws:
java.io.IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException