HyperView2.959 bannerDocumentation
 
public class SerialHandler



Constructors:

SerialHandler() =   this((Object)null,"COM1",19200);

SerialHandler(Object tNotifier,String tPort,int tBPSRate)

public void serialEvent(SerialPortEvent event)

Overwrite this if you want to trap these events but call this FIRST/

super(
event) ;



public void serialEvent(SerialPortEvent event)
 {
   switch(event.getEventType())
   {
      case SerialPortEvent.BI:   // System.out.println("BI");
                            break;
      case SerialPortEvent.OE:   // System.out.println("OE");
                            break;
      case SerialPortEvent.FE:   // System.out.println("FE");
                            break;
      case SerialPortEvent.PE:   //System.out.println("PE");
                            break;
      case SerialPortEvent.CD:   //System.out.println("CD");
                            break;
      case SerialPortEvent.CTS:  //Clear to send System.out.println("CTS");break;
      case SerialPortEvent.DSR:  // Data send ready System.out.println("DSR");
           break;
      case SerialPortEvent.RI:  // Ring indicator.System.out.println("RI");break;
      case SerialPortEvent.OUTPUT_BUFFER_EMPTY://  System.out.println("Buffer
   }
}

 These explain themselves :)


char getChar(Object tNotifier)

char getC()


String flush()


int getBPSRate1()


int setBPSRate1(int tVal)

public void ser1Out(String str)


public void setTimeout(int tTime)

public String getString()

public void ser1Flush()

public void showBuffer()

public void showBuffer(BasicPane tPane)

public void setGobNotifier(Gob tNotifier)