Package org.gvsig.gpe.lib.spi.parser
Interface IGPEParser
public interface IGPEParser
- Author:
- Jorge Piera
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn if the driver can open the fileReturn the format that the driver is able to readgetName()gets the default parser projectionvoidparse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, InputStream is) Method to parse an InputStream.voidparse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, URI uri) Method to parse a file.voidsetContentHandler(IGPEContentHandlerInmGeom contentHandler) voidsetErrorHandler(IGPEErrorHandler errorHandler)
-
Method Details
-
parse
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 ContentHandlererrors- Application ErrorsHandleruri- File to open- Throws:
Exception
-
parse
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 ContentHandlererrors- Application ErrorsHandleris- The input stream- Throws:
Exception
-
accept
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
- Parameters:
errorHandler- the errorHandler to set
-
setContentHandler
- Parameters:
contentHandler- the contentHandler to set
-
getProjection
String getProjection()gets the default parser projection- Returns:
-