Class GpxReader

    • Constructor Detail

      • GpxReader

        public GpxReader​(java.io.InputStream source)
                  throws java.io.IOException
        Constructs a new GpxReader, which can later parse the input stream and store the result in trackData and markerData
        Parameters:
        source - the source input stream
        Throws:
        java.io.IOException - if an IO error occurs, e.g. the input stream is closed.
    • Method Detail

      • parse

        public boolean parse​(boolean tryToFinish)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Parse the GPX data.
        Specified by:
        parse in interface IGpxReader
        Parameters:
        tryToFinish - true, if the reader should return at least part of the GPX data in case of an error.
        Returns:
        true if file was properly parsed, false if there was error during parsing but some data were parsed anyway
        Throws:
        org.xml.sax.SAXException - if any SAX parsing error occurs
        java.io.IOException - if any I/O error occurs