|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.SourceBase
org.graphstream.stream.file.FileSourceXML
org.graphstream.stream.file.FileSourceGPX
public class FileSourceGPX
Source to read GPX (GPS eXchange Format) data an XML extension to exchange gps coordinates, routes and tracks. Read more about GPX at Wikipedia
Nested Class Summary | |
---|---|
static interface |
FileSourceGPX.GPXConstants
|
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase |
---|
SourceBase.ElementType |
Field Summary |
---|
Fields inherited from interface javax.xml.stream.XMLStreamConstants |
---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
Constructor Summary | |
---|---|
FileSourceGPX()
|
Method Summary | |
---|---|
boolean |
isStrict()
|
boolean |
nextEvents()
Try to process one graph event, or as few as possible, if more must be read at once. |
void |
setStrict(boolean on)
|
Methods inherited from class org.graphstream.stream.file.FileSourceXML |
---|
begin, begin, begin, begin, end, nextStep, readAll, readAll, readAll, readAll |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.graphstream.stream.Source |
---|
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink |
Constructor Detail |
---|
public FileSourceGPX()
Method Detail |
---|
public void setStrict(boolean on)
public boolean isStrict()
public boolean nextEvents() throws IOException
FileSource
FileSource.begin(InputStream)
or FileSource.begin(String)
before. This method
return true while there are still events to read.
nextEvents
in interface FileSource
nextEvents
in class FileSourceXML
IOException
- If an I/O error occurs while reading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |