ucar.nc2.ncml
Class NcMLGWriter

java.lang.Object
  extended by ucar.nc2.ncml.NcMLGWriter

public class NcMLGWriter
extends Object

Helper class to write NcML-G.

Author:
caron
See Also:
NetcdfFile, http://zeus.pin.unifi.it/projectsSites/galeon2-ncml-gml/

Field Summary
protected static org.jdom.Namespace ncNS
           
protected static String schemaLocation
           
 
Constructor Summary
NcMLGWriter()
           
 
Method Summary
static void main(String[] arg)
           
 void writeXML(NetcdfDataset ncd, OutputStream os, boolean showCoords, String uri)
          Write a NetcdfDataset as an NcML-G document to the specified stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ncNS

protected static final org.jdom.Namespace ncNS

schemaLocation

protected static final String schemaLocation
See Also:
Constant Field Values
Constructor Detail

NcMLGWriter

public NcMLGWriter()
Method Detail

writeXML

public void writeXML(NetcdfDataset ncd,
                     OutputStream os,
                     boolean showCoords,
                     String uri)
              throws IOException
Write a NetcdfDataset as an NcML-G document to the specified stream.

Parameters:
ncd - write this dataset; should have opened with "add coordinates".
os - write to this OutputStream
showCoords - show 1D coordinate values
uri - use this uri, if null use getLocation()
Throws:
IOException - on io error

main

public static void main(String[] arg)


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.