public class DefaultGPEManager extends java.lang.Object implements GPEManager
| Constructor and Description |
|---|
DefaultGPEManager() |
| 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
|
public java.util.Iterator getKeys()
GPEManagergetKeys in interface GPEManagerpublic java.lang.String getStringProperty(java.lang.String key)
GPEManagergetStringProperty in interface GPEManagerkey - Property namepublic int getIntPropertyProperty(java.lang.String key)
GPEManagergetIntPropertyProperty in interface GPEManagerkey - Property namepublic boolean getBooleanProperty(java.lang.String key)
GPEManagergetBooleanProperty in interface GPEManagerkey - Property namepublic java.lang.Object getProperty(java.lang.String key)
GPEManagergetProperty in interface GPEManagerkey - Property namepublic void setProperty(java.lang.String key,
java.lang.Object value)
GPEManagersetProperty in interface GPEManagerpublic IGPEWriterHandler createWriter(java.lang.String name) throws WriterHandlerCreationException
GPEManagercreateWriter in interface GPEManagername - GPEWriterHandler name
GPEParser nameWriterHandlerCreationExceptionpublic IGPEWriterHandler createWriterByClass(java.lang.String prefferredImplClassName) throws WriterHandlerCreationException
GPEManagercreateWriterByClass in interface GPEManagerprefferredImplClassName - The name of the class that implements GPEWriterHandlerWriterHandlerCreationException - If it is not possible to create a writerpublic IGPEWriterHandler createWriterByMimeType(java.lang.String mimeType) throws WriterHandlerCreationException
GPEManagerGPEWriterHandler#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.
createWriterByMimeType in interface GPEManagermimeType - The mimetype of the file to writeWriterHandlerCreationException - If it is not possible to create a writerpublic void parse(IGPEContentHandler contents, IGPEErrorHandler errors, java.net.URI uri) throws ParserCreationException
GPEManagerparse in interface GPEManagercontents - Application ContentHandlererrors - Application ErrorsHandleruri - File to openParserCreationExceptionpublic void parse(IGPEContentHandler contents, IGPEErrorHandler errors, java.io.File file) throws ParserCreationException
GPEManagerparse in interface GPEManagercontents - Application ContentHandlererrors - Application ErrorsHandlerfile - File to openParserCreationExceptionpublic boolean accept(java.net.URI uri)
GPEManageraccept in interface GPEManageruri - File to openpublic void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, java.net.URI uri) throws ParserCreationException
GPEManagerparse in interface GPEManagercontents - Application ContentHandlererrors - Application ErrorsHandleruri - File to openParserCreationExceptionpublic void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, java.io.File file) throws ParserCreationException
GPEManagerparse in interface GPEManagercontents - Application ContentHandlererrors - Application ErrorsHandlerfile - File to openParserCreationExceptionpublic java.lang.String getDefaultProjection(java.io.File file)
throws ParserCreationException
getDefaultProjection in interface GPEManagerParserCreationException