ucar.nc2.dt.grid
Class GridDatasetInfo

java.lang.Object
  extended by ucar.nc2.dt.grid.GridDatasetInfo

public class GridDatasetInfo
extends java.lang.Object

A helper class to GridDataset; creates a GridDataset XML document. This is a candidate for the XML representation of the Grid SDT. ForecastModelRunInventory.makeDocument is currently being used in NetcdfServer.

Version:
$Revision: 48 $ $Date: 2006-07-12 16:15:40Z $
Author:
caron

Constructor Summary
GridDatasetInfo(GridDataset gds, java.lang.String path)
           
 
Method Summary
static void main(java.lang.String[] args)
          debug
 org.jdom.Document makeDocument()
          Create an XML document from this info
 java.lang.String writeXML()
          Write the information as an XML document
 void writeXML(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridDatasetInfo

public GridDatasetInfo(GridDataset gds,
                       java.lang.String path)
Method Detail

writeXML

public java.lang.String writeXML()
Write the information as an XML document


writeXML

public void writeXML(java.io.OutputStream os)
              throws java.io.IOException
Throws:
java.io.IOException

makeDocument

public org.jdom.Document makeDocument()
Create an XML document from this info


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
debug

Throws:
java.io.IOException