Package com.vividsolutions.jump.io
Class FMEGMLReader
- java.lang.Object
-
- com.vividsolutions.jump.io.AbstractJUMPReader
-
- com.vividsolutions.jump.io.FMEGMLReader
-
- All Implemented Interfaces:
JUMPReader,TaskMonitorSupport
public class FMEGMLReader extends AbstractJUMPReader
A driver that reads GML files following the FME default schema.DataProperties for the driver
This is implemented using the more generalParameter Meaning File or DefaultValue File name for the input FME .xml file CompressedFile File name (a .zip or .gz) with a .jml/.xml/.gml inside (specified by File) GMLReader. It makes aGMLInputTemplateto pass to the GMLReader by examining the schema specified in the input file.
-
-
Constructor Summary
Constructors Constructor Description FMEGMLReader()Creates new FMEGMLReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GMLInputTemplategetGMLInputTemplate(InputStream inputStream, String fname)Parse the input file and make a GMLInputTemplate out of itFeatureCollectionread(DriverProperties dp)Main method - reads in FMEGML file specified in the DriverProperties ('InputFile' or 'DefaultValue')-
Methods inherited from class com.vividsolutions.jump.io.AbstractJUMPReader
addException, getExceptions, getTaskMonitor, setTaskMonitor
-
-
-
-
Method Detail
-
read
public FeatureCollection read(DriverProperties dp) throws Exception
Main method - reads in FMEGML file specified in the DriverProperties ('InputFile' or 'DefaultValue')- Specified by:
readin interfaceJUMPReader- Specified by:
readin classAbstractJUMPReader- Parameters:
dp-DriverPropertiesto specify the file to read ('InputFile' or 'DefaultValue')- Throws:
Exception
-
getGMLInputTemplate
public GMLInputTemplate getGMLInputTemplate(InputStream inputStream, String fname) throws IOException, ParseException
Parse the input file and make a GMLInputTemplate out of it- Parameters:
fname- just used in error messageinputStream- a UTF-8 encoded input stream- Throws:
IOExceptionParseException
-
-