public class NcMLWriter
extends java.lang.Object
Constructor and Description |
---|
NcMLWriter() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arg) |
static org.jdom2.Element |
writeAttribute(Attribute att,
java.lang.String elementName,
org.jdom2.Namespace ns) |
static org.jdom2.Element |
writeDimension(Dimension dim,
org.jdom2.Namespace ns) |
static org.jdom2.Element |
writeEnumTypedef(EnumTypedef etd,
org.jdom2.Namespace ns) |
static org.jdom2.Element |
writeValues(VariableEnhanced v,
org.jdom2.Namespace ns,
boolean allowRegular) |
java.lang.String |
writeXML(NetcdfFile ncfile)
Write NcML from specified NetcdfFile to a String.
|
void |
writeXML(NetcdfFile ncfile,
java.io.OutputStream os,
java.lang.String location)
Write a NetcdfFile as an XML document to the specified stream.
|
void |
writeXML(NetcdfFile ncfile,
java.lang.String filenameOut)
Write a NetcdfFile as an XML document to the specified file.
|
java.lang.String |
writeXML(Variable v) |
void |
writeXMLexplicit(NetcdfFile ncfile,
java.io.OutputStream os,
java.lang.String location) |
public java.lang.String writeXML(NetcdfFile ncfile) throws java.io.IOException
ncfile
- NcML for this NetcdfFilejava.io.IOException
- on io errorpublic java.lang.String writeXML(Variable v) throws java.io.IOException
java.io.IOException
public void writeXML(NetcdfFile ncfile, java.lang.String filenameOut) throws java.io.IOException
ncfile
- NcML for this NetcdfFilefilenameOut
- write NcML to this locationjava.io.IOException
- on io errorpublic void writeXML(NetcdfFile ncfile, java.io.OutputStream os, java.lang.String location) throws java.io.IOException
ncfile
- NcML for this NetcdfFileos
- write to this OutputStreamlocation
- normally null, meaning use ncd.getLocation(); otherwise put this into the NcML locationjava.io.IOException
- on io errorpublic void writeXMLexplicit(NetcdfFile ncfile, java.io.OutputStream os, java.lang.String location) throws java.io.IOException
java.io.IOException
public static org.jdom2.Element writeAttribute(Attribute att, java.lang.String elementName, org.jdom2.Namespace ns)
public static org.jdom2.Element writeDimension(Dimension dim, org.jdom2.Namespace ns)
public static org.jdom2.Element writeEnumTypedef(EnumTypedef etd, org.jdom2.Namespace ns)
public static org.jdom2.Element writeValues(VariableEnhanced v, org.jdom2.Namespace ns, boolean allowRegular)
public static void main(java.lang.String[] arg)