Package org.gvsig.gpe.prov.gml.parser
Class GPEDefaultGmlParser
java.lang.Object
org.gvsig.gpe.lib.impl.parser.GPEParser
org.gvsig.gpe.prov.xml.parser.GPEXmlParser
org.gvsig.gpe.prov.gml.parser.GPEDefaultGmlParser
- All Implemented Interfaces:
IGPEParser
- Direct Known Subclasses:
GPEGml2_1_2_Parser,GPEGmlSFP0Parser
- Author:
- Carlos Sánchez Periñán (sanchez_carper@gva.es)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns true if the file is a gml file and the parser has to parse it protected InputStreamcreateInputStream(File file) Creates an InputStream from a file. org.gvsig.xmlpull.lib.api.stream.IXmlStreamReaderString[]Returns the file extensions that are accepted to GML Parser voidgetNext()Gets the next tag or text token from the file. without white spaces. gets the default parser projectionUtility method just to access to the QName comparatorprotected voidStarts to parse the file. protected voidsetProfile(IBindingProfile profile) Methods inherited from class org.gvsig.gpe.prov.xml.parser.GPEXmlParser
getParser, parseStream, parseURIMethods inherited from class org.gvsig.gpe.lib.impl.parser.GPEParser
getContentHandler, getDescription, getErrorHandler, getFormat, getGpeManager, getInputStream, getMainFile, getName, parse, parse, setContentHandler, setErrorHandler, setInputStream
-
Field Details
-
qNameComparator
-
-
Constructor Details
-
GPEDefaultGmlParser
public GPEDefaultGmlParser()Constructor Method
-
-
Method Details
-
getFormats
Returns the file extensions that are accepted to GML Parser - Returns:
- String[] Accepted Extensions
-
accept
Returns true if the file is a gml file and the parser has to parse it - Specified by:
acceptin interfaceIGPEParser- Specified by:
acceptin classGPEParser- Parameters:
URI- uri- Returns:
- boolean
-
accept
-
createInputStream
Creates an InputStream from a file. - Specified by:
createInputStreamin classGPEXmlParser- Parameters:
File- file- Returns:
- FileInputStream
- Throws:
FileNotFoundException
-
initParse
protected void initParse() throws GPEXmlEmptyFileException, org.gvsig.xmlpull.lib.api.stream.XmlStreamExceptionStarts to parse the file. - Specified by:
initParsein classGPEXmlParser- Throws:
org.gvsig.xmlpull.lib.api.stream.XmlStreamExceptionGPEXmlEmptyFileException
-
getFileParser
public org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader getFileParser() -
getNext
public void getNext()Gets the next tag or text token from the file. without white spaces. -
setProfile
- Parameters:
profile- the profile to set
-
getProfile
- Returns:
- the profile
-
getQNameComparator
Utility method just to access to the QName comparator- Returns:
- the comparator used to comare QName's
-
getProjection
gets the default parser projection- Returns:
-