net.sf.bt747.test
Class MyVirtualPort

java.lang.Object
  extended by gps.connection.GPSPort
      extended by net.sf.bt747.test.MyVirtualPort

public class MyVirtualPort
extends GPSPort

Author:
Mario

Field Summary
 
Fields inherited from class gps.connection.GPSPort
os_name
 
Constructor Summary
MyVirtualPort(java.io.InputStream is, java.io.OutputStream os)
           
 
Method Summary
 void closePort()
           
 boolean isConnected()
          Indicates if the device is connected or not.
 int openPort()
           
 int readBytes(byte[] b, int start, int max)
           
 int readCheck()
           
 void write(byte[] b)
           
 void write(java.lang.String s)
           
 
Methods inherited from class gps.connection.GPSPort
debugActive, endDebug, getDebugFileName, getFreeTextPort, getPort, getSpeed, setBlueTooth, setDebugFileName, setFreeTextPort, setPort, setSpeed, setUSB, startDebug, writeDebug, writeDebug
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyVirtualPort

public MyVirtualPort(java.io.InputStream is,
                     java.io.OutputStream os)
Method Detail

write

public void write(java.lang.String s)
Specified by:
write in class GPSPort

write

public void write(byte[] b)
Specified by:
write in class GPSPort

readCheck

public int readCheck()
Overrides:
readCheck in class GPSPort

readBytes

public int readBytes(byte[] b,
                     int start,
                     int max)
Overrides:
readBytes in class GPSPort

openPort

public int openPort()
Overrides:
openPort in class GPSPort

closePort

public void closePort()
Overrides:
closePort in class GPSPort

isConnected

public boolean isConnected()
Description copied from class: GPSPort
Indicates if the device is connected or not.

Overrides:
isConnected in class GPSPort
Returns:
true if the device is connected.