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
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
FileSourceGPX() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterStartDocument()
Called after the event
XMLEvent.START_DOCUMENT has been
received. |
protected void |
beforeEndDocument()
Called before trying to receive the events
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 FileSourceGPX()
public void setStrict(boolean on)
public boolean isStrict()
protected void afterStartDocument() throws IOException, XMLStreamException
FileSourceXML
XMLEvent.START_DOCUMENT
has been
received.afterStartDocument
in class FileSourceXML
IOException
XMLStreamException
protected void beforeEndDocument() throws IOException, XMLStreamException
FileSourceXML
event.END_DOCUMENT
.beforeEndDocument
in class FileSourceXML
IOException
XMLStreamException
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.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses