Package org.gvsig.gpe.prov.xml.parser
Class GPEXmlParser
java.lang.Object
org.gvsig.gpe.lib.impl.parser.GPEParser
org.gvsig.gpe.prov.xml.parser.GPEXmlParser
- All Implemented Interfaces:
IGPEParser
This class can be implemented by all the classes that implements a GPE driver based on the XML
format.
- Author:
- Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract InputStreamcreateInputStream(File file) Creates an input stream from a file.protected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReaderprotected abstract voidThis method start the parse process.protected voidprotected voidparseURI()Methods inherited from class org.gvsig.gpe.lib.impl.parser.GPEParser
accept, accept, getContentHandler, getDescription, getErrorHandler, getFormat, getGpeManager, getInputStream, getMainFile, getName, parse, parse, setContentHandler, setErrorHandler, setInputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.gpe.lib.spi.parser.IGPEParser
getProjection
-
Constructor Details
-
GPEXmlParser
public GPEXmlParser()
-
-
Method Details
-
parseStream
protected void parseStream()- Specified by:
parseStreamin classGPEParser
-
parseURI
protected void parseURI() -
createInputStream
Creates an input stream from a file.- Parameters:
file-- Returns:
- InputStream
- Throws:
FileNotFoundException
-
initParse
protected abstract void initParse() throws GPEXmlEmptyFileException, org.gvsig.xmlpull.lib.api.stream.XmlStreamExceptionThis method start the parse process. It is called after the XML parser is initialized- Throws:
GPEXmlEmptyFileExceptionorg.gvsig.xmlpull.lib.api.stream.XmlStreamException
-
getParser
protected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader getParser()- Returns:
- the parser
-