public interface GPEManager
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.net.URI uri)
Return true if exists a driver that can open the file
|
IGPEWriterHandler |
createWriter(java.lang.String name)
Create a new content writer from a name
|
IGPEWriterHandler |
createWriterByClass(java.lang.String prefferredImplClassName)
Create a new writer from a class name.
|
IGPEWriterHandler |
createWriterByMimeType(java.lang.String mimeType)
Create a new writer from a mime type.
|
boolean |
getBooleanProperty(java.lang.String key)
Gets a boolean property.
|
java.lang.String |
getDefaultProjection(java.io.File file) |
int |
getIntPropertyProperty(java.lang.String key)
Gets a int property
|
java.util.Iterator |
getKeys()
Returns an iterator with the name of all the properties that
has been established.
|
java.lang.Object |
getProperty(java.lang.String key)
Gets a property
|
java.lang.String |
getStringProperty(java.lang.String key)
Gets a String property
|
void |
parse(IGPEContentHandler contents,
IGPEErrorHandler errors,
java.io.File file)
Method to parse a file.
|
void |
parse(IGPEContentHandler contents,
IGPEErrorHandler errors,
java.net.URI uri)
Method to parse a file.
|
void |
parse(IGPEContentHandlerInmGeom contents,
IGPEErrorHandler errors,
java.io.File file)
Method to parse a file.
|
void |
parse(IGPEContentHandlerInmGeom contents,
IGPEErrorHandler errors,
java.net.URI uri)
Method to parse a file.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a property
|
boolean accept(java.net.URI uri)
uri
- File to openvoid parse(IGPEContentHandler contents, IGPEErrorHandler errors, java.net.URI uri) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandleruri
- File to openParserCreationException
java.lang.Exception
void parse(IGPEContentHandler contents, IGPEErrorHandler errors, java.io.File file) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandlerfile
- File to openParserCreationException
java.lang.Exception
void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, java.net.URI uri) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandleruri
- File to openParserCreationException
java.lang.Exception
void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, java.io.File file) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandlerfile
- File to openParserCreationException
java.lang.Exception
IGPEWriterHandler createWriter(java.lang.String name) throws WriterHandlerCreationException
name
- GPEWriterHandler name
GPEParser namecontenHandler
- Application contenHandler usett to throw the parsing eventserrorHandler
- Application errror handler used to put errors and warningsGPEWriterHandlerCreationException
WriterHandlerCreationException
IGPEWriterHandler createWriterByClass(java.lang.String prefferredImplClassName) throws WriterHandlerCreationException
prefferredImplClassName
- The name of the class that implements GPEWriterHandler
WriterHandlerCreationException
- If it is not possible to create a writerIGPEWriterHandler createWriterByMimeType(java.lang.String mimeType) throws WriterHandlerCreationException
GPEWriterHandler#getFormat()
that returns the mimetype
that the writer can write. One writer only supports one mimetype.
This method retrieve all the writers and returns the first one that is able to write the mimetype. If there are more writer that can write the format will not be used.
mimeType
- The mimetype of the file to writeWriterHandlerCreationException
- If it is not possible to create a writerjava.util.Iterator getKeys()
java.lang.String getStringProperty(java.lang.String key)
key
- Property nameint getIntPropertyProperty(java.lang.String key)
key
- Property nameboolean getBooleanProperty(java.lang.String key)
key
- Property namejava.lang.Object getProperty(java.lang.String key)
key
- Property namevoid setProperty(java.lang.String key, java.lang.Object value)
key
- value
- java.lang.String getDefaultProjection(java.io.File file) throws ParserCreationException
ParserCreationException