Interface IGPEParser


public interface IGPEParser
Author:
Jorge Piera
  • Method Details

    • parse

      void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, URI uri)
      Method to parse a file. It cannot to throw any exception and it cannot to return any value. In a future it could be implemented like a independent thread
      Parameters:
      contents - Application ContentHandler
      errors - Application ErrorsHandler
      uri - File to open
      Throws:
      Exception
    • parse

      void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, InputStream is)
      Method to parse an InputStream. It cannot to throw any exception and it cannot to return any value. In a future it could be implemented like a independent thread
      Parameters:
      contents - Application ContentHandler
      errors - Application ErrorsHandler
      is - The input stream
      Throws:
      Exception
    • accept

      boolean accept(URI uri)
      Return if the driver can open the file
      Parameters:
      uri - File to open
      Returns:
      True if the driver is able to open it
    • getFormat

      String getFormat()
      Return the format that the driver is able to read
      Returns:
    • getContentHandler

      IGPEContentHandlerInmGeom getContentHandler()
      Returns:
      the contentHandler
    • getErrorHandler

      IGPEErrorHandler getErrorHandler()
      Returns:
      the errorHandler
    • getMainFile

      URI getMainFile()
      Returns:
      the file
    • getDescription

      String getDescription()
      Returns:
      the description
    • getName

      String getName()
      Returns:
      the name
    • setErrorHandler

      void setErrorHandler(IGPEErrorHandler errorHandler)
      Parameters:
      errorHandler - the errorHandler to set
    • setContentHandler

      void setContentHandler(IGPEContentHandlerInmGeom contentHandler)
      Parameters:
      contentHandler - the contentHandler to set
    • getProjection

      String getProjection()
      gets the default parser projection
      Returns: