Class SAXWrapper


public final class SAXWrapper extends SingleParser
This class parses an XML document with Java's internal SAX parser. Note that not all files cannot be parsed with the default parser; for example, the DBLP documents contain too many entities and cause an out of memory error. The internal XMLParser can be used as alternative.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • SAXWrapper

      public SAXWrapper(IO source, MainOptions opts)
      Constructor.
      Parameters:
      source - input source
      opts - database options
  • Method Details

    • parse

      public void parse() throws IOException
      Description copied from class: SingleParser
      Parses the current input.
      Specified by:
      parse in class SingleParser
      Throws:
      IOException - I/O exception
    • detailedInfo

      public String detailedInfo()
      Description copied from class: Job
      Returns detailed progress information. Can be overwritten to give more specific feedback.
      Overrides:
      detailedInfo in class Job
      Returns:
      header information
    • progressInfo

      public double progressInfo()
      Description copied from class: Job
      Returns a progress value (0 - 1). Can be overwritten to give more specific feedback.
      Overrides:
      progressInfo in class Job
      Returns:
      header information