com.vividsolutions.jump.io
Class FMEGMLReader

java.lang.Object
  extended by com.vividsolutions.jump.io.FMEGMLReader
All Implemented Interfaces:
JUMPReader

public class FMEGMLReader
extends java.lang.Object
implements JUMPReader

A driver that reads GML files following the FME default schema.

DataProperties for the driver

ParameterMeaning
File or DefaultValueFile name for the input FME .xml file
CompressedFileFile name (a .zip or .gz) with a .jml/.xml/.gml inside (specified by File)

This is implemented using the more general GMLReader. It makes a GMLInputTemplate to pass to the GMLReader by examining the schema specified in the input file.


Constructor Summary
FMEGMLReader()
          Creates new FMEGMLReader
 
Method Summary
 GMLInputTemplate getGMLInputTemplate(java.io.Reader r, java.lang.String fname)
          Parse the input file and make a GMLInputTemplate out of it
 FeatureCollection read(DriverProperties dp)
          Main method - reads in FMEGML file specified in the DriverProperties ('InputFile' or 'DefaultValue')
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FMEGMLReader

public FMEGMLReader()
Creates new FMEGMLReader

Method Detail

read

public FeatureCollection read(DriverProperties dp)
                       throws IllegalParametersException,
                              java.lang.Exception
Main method - reads in FMEGML file specified in the DriverProperties ('InputFile' or 'DefaultValue')

Specified by:
read in interface JUMPReader
Parameters:
dp - DriverProperties to specify the file to read ('InputFile' or 'DefaultValue')
Throws:
IllegalParametersException
java.lang.Exception

getGMLInputTemplate

public GMLInputTemplate getGMLInputTemplate(java.io.Reader r,
                                            java.lang.String fname)
                                     throws java.io.IOException,
                                            ParseException
Parse the input file and make a GMLInputTemplate out of it

Parameters:
fname - just used in error message
r - Java Reader
Throws:
java.io.IOException
ParseException