public class FileSourceGPX extends FileSourceXML
Modifier and Type | Class and Description |
---|---|
static interface |
FileSourceGPX.GPXConstants |
protected class |
FileSourceGPX.GPXParser |
protected class |
FileSourceGPX.WayPoint |
FileSourceXML.Parser
SourceBase.ElementType
Modifier and Type | Field and Description |
---|---|
protected FileSourceGPX.GPXParser |
parser
Parser used by this source.
|
protected boolean |
strict
Flag to set strict mode.
|
reader
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
FileSourceGPX() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterStartDocument()
Called after the event
javax.xml.stream.events.XMLEvent.START_DOCUMENT has been
received. |
protected void |
beforeEndDocument()
Called before trying to receive the events
javax.xml.stream.event.END_DOCUMENT . |
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) |
begin, begin, begin, begin, checkValid, closeStream, end, getNextEvent, isEvent, newParseError, nextStep, openStream, pushback, readAll, readAll, readAll, readAll, toConstantName, toConstantName
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, manageEvents, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBegins
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
protected FileSourceGPX.GPXParser parser
protected boolean strict
public void setStrict(boolean on)
public boolean isStrict()
protected void afterStartDocument() throws java.io.IOException, javax.xml.stream.XMLStreamException
FileSourceXML
javax.xml.stream.events.XMLEvent.START_DOCUMENT
has been
received.afterStartDocument
in class FileSourceXML
java.io.IOException
javax.xml.stream.XMLStreamException
protected void beforeEndDocument() throws java.io.IOException, javax.xml.stream.XMLStreamException
FileSourceXML
javax.xml.stream.event.END_DOCUMENT
.beforeEndDocument
in class FileSourceXML
java.io.IOException
javax.xml.stream.XMLStreamException
public boolean nextEvents() throws java.io.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
java.io.IOException
- If an I/O error occurs while reading.