Class OziWptReader

    • Constructor Summary

      Constructors 
      Constructor Description
      OziWptReader​(java.io.InputStream source)
      Constructs a new OziWptReader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GpxData getGpxData()
      Replies the GPX data.
      int getNumberOfCoordinates()
      Returns the number of coordinates that have been successfully read.
      boolean parse​(boolean tryToFinish)
      Parse the GPX data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OziWptReader

        public OziWptReader​(java.io.InputStream source)
                     throws java.io.IOException
        Constructs a new OziWptReader
        Parameters:
        source - Ozi wpt file input stream
        Throws:
        java.io.IOException - if an I/O error occurs
    • Method Detail

      • parse

        public boolean parse​(boolean tryToFinish)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Description copied from interface: IGpxReader
        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