net.sf.bt747.test
Class MyVirtualPort
java.lang.Object
gps.connection.GPSPort
net.sf.bt747.test.MyVirtualPort
public class MyVirtualPort
- extends GPSPort
- Author:
- Mario
Constructor Summary |
MyVirtualPort(java.io.InputStream is,
java.io.OutputStream os)
|
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 |
MyVirtualPort
public MyVirtualPort(java.io.InputStream is,
java.io.OutputStream os)
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.