|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dinopolis.gpstool.gpsinput.GPSFileDevice
This class 'connects' to a file containing gps-informations.
Field Summary | |
static java.lang.String |
PATH_NAME_KEY
|
Constructor Summary | |
GPSFileDevice()
|
Method Summary | |
void |
close()
Closes the connection to the GPSDevice. |
java.io.InputStream |
getInputStream()
Returns an input stream from the gps device. |
java.io.OutputStream |
getOutputStream()
Returns an output stream from the gps device. |
void |
init(java.util.Hashtable environment)
Initialize the GPSDevice and hand over all information needed for the specific GPSDevice to opens the connection. |
void |
open()
Opens the gps device (e.g. serial connection to gps-receiver or file containing logging information from a gps-receiver). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PATH_NAME_KEY
Constructor Detail |
public GPSFileDevice()
Method Detail |
public void init(java.util.Hashtable environment) throws GPSException
init
in interface GPSDevice
environment
- contains all informations needed to initialize
the gps device.
GPSException
- if the initialization was not successfull,
e.g. some information in the environment is missing.public void open() throws GPSException
open
in interface GPSDevice
GPSException
- if the opening of the device was not successfull.public void close() throws GPSException
close
in interface GPSDevice
GPSException
- if closing the device was not successfull.public java.io.InputStream getInputStream() throws java.io.IOException
open
was not called before, then getInputStream
returns null
.
getInputStream
in interface GPSDevice
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
open
was not called before, then getOutputStream
returns null
.
getOutputStream
in interface GPSDevice
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |