public class NcMLWriter extends Object
NetcdfFile
,
http://www.unidata.ucar.edu/software/netcdf/ncml/Modifier and Type | Field and Description |
---|---|
protected static org.jdom2.Namespace |
ncNS |
protected static org.jdom2.Namespace |
xsiNS |
Constructor and Description |
---|
NcMLWriter() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] arg) |
static org.jdom2.Element |
writeAttribute(Attribute att,
String elementName,
org.jdom2.Namespace ns) |
static org.jdom2.Element |
writeDimension(Dimension dim,
org.jdom2.Namespace ns) |
static org.jdom2.Element |
writeValues(VariableEnhanced v,
org.jdom2.Namespace ns,
boolean allowRegular) |
String |
writeXML(NetcdfFile ncfile)
Write NcML from specified NetcdfFile to a String.
|
void |
writeXML(NetcdfFile ncfile,
OutputStream os,
String location)
Write a NetcdfFile as an XML document to the specified stream.
|
void |
writeXML(NetcdfFile ncfile,
String filenameOut)
Write a NetcdfFile as an XML document to the specified file.
|
String |
writeXML(Variable v) |
void |
writeXMLexplicit(NetcdfFile ncfile,
OutputStream os,
String location) |
protected static final org.jdom2.Namespace ncNS
protected static final org.jdom2.Namespace xsiNS
public String writeXML(NetcdfFile ncfile) throws IOException
ncfile
- NcML for this NetcdfFileIOException
- on io errorpublic String writeXML(Variable v) throws IOException
IOException
public void writeXML(NetcdfFile ncfile, String filenameOut) throws IOException
ncfile
- NcML for this NetcdfFilefilenameOut
- write NcML to this locationIOException
- on io errorpublic void writeXML(NetcdfFile ncfile, OutputStream os, String location) throws IOException
ncfile
- NcML for this NetcdfFileos
- write to this OutputStreamlocation
- normally null, meaning use ncd.getLocation(); otherwise put this into the NcML locationIOException
- on io errorpublic void writeXMLexplicit(NetcdfFile ncfile, OutputStream os, String location) throws IOException
IOException
public static org.jdom2.Element writeAttribute(Attribute att, String elementName, org.jdom2.Namespace ns)
public static org.jdom2.Element writeDimension(Dimension dim, org.jdom2.Namespace ns)
public static org.jdom2.Element writeValues(VariableEnhanced v, org.jdom2.Namespace ns, boolean allowRegular)
public static void main(String[] arg)
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.