Class GPEDefaultGmlParser

All Implemented Interfaces:
IGPEParser
Direct Known Subclasses:
GPEGml2_1_2_Parser, GPEGmlSFP0Parser

public abstract class GPEDefaultGmlParser extends GPEXmlParser
Author:
Carlos Sánchez Periñán (sanchez_carper@gva.es)
  • Field Details

  • Constructor Details

    • GPEDefaultGmlParser

      public GPEDefaultGmlParser()
      Constructor Method
  • Method Details

    • getFormats

      public String[] getFormats()
      Returns the file extensions that are accepted to GML Parser
      Returns:
      String[] Accepted Extensions
    • accept

      public boolean accept(URI uri)
      Returns true if the file is a gml file and the parser has to parse it
      Specified by:
      accept in interface IGPEParser
      Specified by:
      accept in class GPEParser
      Parameters:
      URI - uri
      Returns:
      boolean
    • accept

      public boolean accept(File file)
      Specified by:
      accept in class GPEParser
    • createInputStream

      protected InputStream createInputStream(File file) throws FileNotFoundException
      Creates an InputStream from a file.
      Specified by:
      createInputStream in class GPEXmlParser
      Parameters:
      File - file
      Returns:
      FileInputStream
      Throws:
      FileNotFoundException
    • initParse

      protected void initParse() throws GPEXmlEmptyFileException, org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      Starts to parse the file.
      Specified by:
      initParse in class GPEXmlParser
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      GPEXmlEmptyFileException
    • getFileParser

      public org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader getFileParser()
    • getNext

      public void getNext()
      Gets the next tag or text token from the file. without white spaces.
    • setProfile

      protected void setProfile(IBindingProfile profile)
      Parameters:
      profile - the profile to set
    • getProfile

      public IBindingProfile getProfile()
      Returns:
      the profile
    • getQNameComparator

      public QNameComparator getQNameComparator()
      Utility method just to access to the QName comparator
      Returns:
      the comparator used to comare QName's
    • getProjection

      public String getProjection()
      gets the default parser projection
      Returns: