public class CatalogXmlWriter
extends java.lang.Object
Constructor and Description |
---|
CatalogXmlWriter() |
Modifier and Type | Method and Description |
---|---|
static void |
useBytesForDataSize(boolean b) |
org.jdom2.Document |
writeCatalog(Catalog cat) |
protected org.jdom2.Element |
writeContributor(ThreddsMetadata.Contributor c) |
protected org.jdom2.Element |
writeDate(java.lang.String name,
DateType date) |
org.jdom2.Element |
writeGeospatialCoverage(ThreddsMetadata.GeospatialCoverage gc) |
protected void |
writeInheritedMetadata(org.jdom2.Element elem,
Dataset ds) |
protected org.jdom2.Element |
writeSource(java.lang.String elementName,
ThreddsMetadata.Source p) |
protected void |
writeThreddsMetadata(org.jdom2.Element elem,
ThreddsMetadataContainer ds) |
protected org.jdom2.Element |
writeTimeCoverage(DateRange t) |
protected org.jdom2.Element |
writeVariable(ThreddsMetadata.Variable v) |
protected org.jdom2.Element |
writeVariables(ThreddsMetadata.VariableGroup vs) |
java.lang.String |
writeXML(Catalog catalog) |
void |
writeXML(Catalog catalog,
java.io.OutputStream os)
Write the catalog as an XML document to the specified stream.
|
void |
writeXML(Catalog catalog,
java.io.OutputStream os,
boolean raw)
Write the catalog as an XML document to the specified stream.
|
public static void useBytesForDataSize(boolean b)
public void writeXML(Catalog catalog, java.io.OutputStream os, boolean raw) throws java.io.IOException
catalog
- write this catalogos
- write to this OutputStreamraw
- write raw file if true (for server configuration)java.io.IOException
public java.lang.String writeXML(Catalog catalog) throws java.io.IOException
java.io.IOException
public void writeXML(Catalog catalog, java.io.OutputStream os) throws java.io.IOException
catalog
- write this catalogos
- write to this OutputStreamjava.io.IOException
public org.jdom2.Document writeCatalog(Catalog cat)
protected org.jdom2.Element writeContributor(ThreddsMetadata.Contributor c)
protected org.jdom2.Element writeDate(java.lang.String name, DateType date)
public org.jdom2.Element writeGeospatialCoverage(ThreddsMetadata.GeospatialCoverage gc)
protected org.jdom2.Element writeSource(java.lang.String elementName, ThreddsMetadata.Source p)
protected void writeInheritedMetadata(org.jdom2.Element elem, Dataset ds)
protected void writeThreddsMetadata(org.jdom2.Element elem, ThreddsMetadataContainer ds)
protected org.jdom2.Element writeTimeCoverage(DateRange t)
protected org.jdom2.Element writeVariable(ThreddsMetadata.Variable v)
protected org.jdom2.Element writeVariables(ThreddsMetadata.VariableGroup vs)