ucar.ncx.jdom
Class NcxJDOMFactory

java.lang.Object
  |
  +--ucar.ncx.jdom.NcxJDOMFactory

public class NcxJDOMFactory
extends java.lang.Object

Java class that processes a netcdf file and returns a JDOM Document. The netcdf file can be either a local file or specified through a URL (URLs are identified by the presence of the "://" string). A boolean flag controls wether the output XML document should conform to the generic netcdf schema or to specific netcdf conventions.


Constructor Summary
NcxJDOMFactory()
          No argument constructor
 
Method Summary
 org.jdom.Document process(java.lang.String netcdfFile)
          Method for processing without using conventions, i.e.
 org.jdom.Document process(java.lang.String netcdfFile, boolean flag)
          Method for processing a netcdf file with specific netcdf conventions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcxJDOMFactory

public NcxJDOMFactory()
No argument constructor

Method Detail

process

public org.jdom.Document process(java.lang.String netcdfFile)
                          throws java.io.IOException
Method for processing without using conventions, i.e. use only generic netcdf schema http://www.ucar.edu/schemas/netcdf

Returns:
JDOM document containig netcdf metadata
Throws:
java.io.IOException

process

public org.jdom.Document process(java.lang.String netcdfFile,
                                 boolean flag)
                          throws java.io.IOException
Method for processing a netcdf file with specific netcdf conventions. Conventions are recognized from the netcdf global attribute "conventions". Currently supported conventions include:

Returns:
JDOM document containig netcdf metadata
Throws:
java.io.IOException