public interface GPEManager
Modifier and Type | Method and Description |
---|---|
boolean |
accept(URI uri)
Return true if exists a driver that can open the file
|
IGPEWriterHandler |
createWriter(String name)
Create a new content writer from a name
|
IGPEWriterHandler |
createWriterByClass(String prefferredImplClassName)
Create a new writer from a class name.
|
IGPEWriterHandler |
createWriterByMimeType(String mimeType)
Create a new writer from a mime type.
|
boolean |
getBooleanProperty(String key)
Gets a boolean property.
|
String |
getDefaultProjection(File file) |
int |
getIntPropertyProperty(String key)
Gets a int property
|
Iterator |
getKeys()
Returns an iterator with the name of all the properties that
has been established.
|
Object |
getProperty(String key)
Gets a property
|
String |
getStringProperty(String key)
Gets a String property
|
void |
parse(IGPEContentHandler contents,
IGPEErrorHandler errors,
File file)
Method to parse a file.
|
void |
parse(IGPEContentHandler contents,
IGPEErrorHandler errors,
URI uri)
Method to parse a file.
|
void |
parse(IGPEContentHandlerInmGeom contents,
IGPEErrorHandler errors,
File file)
Method to parse a file.
|
void |
parse(IGPEContentHandlerInmGeom contents,
IGPEErrorHandler errors,
URI uri)
Method to parse a file.
|
void |
setProperty(String key,
Object value)
Sets a property
|
boolean accept(URI uri)
uri
- File to openvoid parse(IGPEContentHandler contents, IGPEErrorHandler errors, URI uri) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandleruri
- File to openParserCreationException
Exception
void parse(IGPEContentHandler contents, IGPEErrorHandler errors, File file) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandlerfile
- File to openParserCreationException
Exception
void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, URI uri) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandleruri
- File to openParserCreationException
Exception
void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, File file) throws ParserCreationException
contents
- Application ContentHandlererrors
- Application ErrorsHandlerfile
- File to openParserCreationException
Exception
IGPEWriterHandler createWriter(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(String prefferredImplClassName) throws WriterHandlerCreationException
prefferredImplClassName
- The name of the class that implements GPEWriterHandler
WriterHandlerCreationException
- If it is not possible to create a writerIGPEWriterHandler createWriterByMimeType(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 writerIterator getKeys()
String getStringProperty(String key)
key
- Property nameint getIntPropertyProperty(String key)
key
- Property nameboolean getBooleanProperty(String key)
key
- Property nameString getDefaultProjection(File file) throws ParserCreationException
ParserCreationException