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()
GPEManager
getKeys
in interface GPEManager
public java.lang.String getStringProperty(java.lang.String key)
GPEManager
getStringProperty
in interface GPEManager
key
- Property namepublic int getIntPropertyProperty(java.lang.String key)
GPEManager
getIntPropertyProperty
in interface GPEManager
key
- Property namepublic boolean getBooleanProperty(java.lang.String key)
GPEManager
getBooleanProperty
in interface GPEManager
key
- Property namepublic java.lang.Object getProperty(java.lang.String key)
GPEManager
getProperty
in interface GPEManager
key
- Property namepublic void setProperty(java.lang.String key, java.lang.Object value)
GPEManager
setProperty
in interface GPEManager
public IGPEWriterHandler createWriter(java.lang.String name) throws WriterHandlerCreationException
GPEManager
createWriter
in interface GPEManager
name
- GPEWriterHandler name
GPEParser nameWriterHandlerCreationException
public IGPEWriterHandler createWriterByClass(java.lang.String prefferredImplClassName) throws WriterHandlerCreationException
GPEManager
createWriterByClass
in interface GPEManager
prefferredImplClassName
- The name of the class that implements GPEWriterHandler
WriterHandlerCreationException
- If it is not possible to create a writerpublic IGPEWriterHandler createWriterByMimeType(java.lang.String mimeType) throws WriterHandlerCreationException
GPEManager
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.
createWriterByMimeType
in interface GPEManager
mimeType
- 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
GPEManager
parse
in interface GPEManager
contents
- Application ContentHandlererrors
- Application ErrorsHandleruri
- File to openParserCreationException
public void parse(IGPEContentHandler contents, IGPEErrorHandler errors, java.io.File file) throws ParserCreationException
GPEManager
parse
in interface GPEManager
contents
- Application ContentHandlererrors
- Application ErrorsHandlerfile
- File to openParserCreationException
public boolean accept(java.net.URI uri)
GPEManager
accept
in interface GPEManager
uri
- File to openpublic void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, java.net.URI uri) throws ParserCreationException
GPEManager
parse
in interface GPEManager
contents
- Application ContentHandlererrors
- Application ErrorsHandleruri
- File to openParserCreationException
public void parse(IGPEContentHandlerInmGeom contents, IGPEErrorHandler errors, java.io.File file) throws ParserCreationException
GPEManager
parse
in interface GPEManager
contents
- Application ContentHandlererrors
- Application ErrorsHandlerfile
- File to openParserCreationException
public java.lang.String getDefaultProjection(java.io.File file) throws ParserCreationException
getDefaultProjection
in interface GPEManager
ParserCreationException