Class GPEXmlParser

java.lang.Object
org.gvsig.gpe.lib.impl.parser.GPEParser
org.gvsig.gpe.prov.xml.parser.GPEXmlParser
All Implemented Interfaces:
IGPEParser

public abstract class GPEXmlParser extends GPEParser
This class can be implemented by all the classes that implements a GPE driver based on the XML format.
Author:
Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
  • Constructor Details

    • GPEXmlParser

      public GPEXmlParser()
  • Method Details

    • parseStream

      protected void parseStream()
      Specified by:
      parseStream in class GPEParser
    • parseURI

      protected void parseURI()
      Specified by:
      parseURI in class GPEParser
    • createInputStream

      protected abstract InputStream createInputStream(File file) throws FileNotFoundException
      Creates an input stream from a file.
      Parameters:
      file -
      Returns:
      InputStream
      Throws:
      FileNotFoundException
    • initParse

      protected abstract void initParse() throws GPEXmlEmptyFileException, org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      This method start the parse process. It is called after the XML parser is initialized
      Throws:
      GPEXmlEmptyFileException
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
    • getParser

      protected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader getParser()
      Returns:
      the parser