ucar.ncx.dom
Class NcxDOMFactory

java.lang.Object
  |
  +--ucar.ncx.dom.NcxDOMFactory

public class NcxDOMFactory
extends java.lang.Object

Java class that processes a netcdf file and returns a DOM 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
NcxDOMFactory()
          No argument constructor
 
Method Summary
 org.w3c.dom.Document process(java.lang.String netcdfFile)
          Method for processing without using conventions, i.e.
 org.w3c.dom.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

NcxDOMFactory

public NcxDOMFactory()
No argument constructor

Method Detail

process

public org.w3c.dom.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:
DOM document containig netcdf metadata
Throws:
java.io.IOException

process

public org.w3c.dom.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:
DOM document containig netcdf metadata
Throws:
java.io.IOException