thredds.catalog
Interface InvCatalogConvertIF


public interface InvCatalogConvertIF

Converts JDOM tree to Inventory Catalog Objects.

Author:
John Caron
See Also:
InvCatalogFactory

Method Summary
 InvCatalogImpl parseXML(InvCatalogFactory fac, org.jdom.Document doc, java.net.URI uri)
          Create an InvCatalogImpl from a parsed document tree.
 void writeXML(InvCatalogImpl catalog, java.io.OutputStream os)
          Write the catalog as an XML document to the specified stream.
 void writeXML(InvCatalogImpl catalog, java.io.OutputStream os, boolean raw)
           
 

Method Detail

parseXML

InvCatalogImpl parseXML(InvCatalogFactory fac,
                        org.jdom.Document doc,
                        java.net.URI uri)
Create an InvCatalogImpl from a parsed document tree.

Parameters:
fac - use this factory
doc - : a parsed document tree.
uri - : the URI for the document.
Returns:
an InvCatalog object

writeXML

void writeXML(InvCatalogImpl catalog,
              java.io.OutputStream os)
              throws java.io.IOException
Write the catalog as an XML document to the specified stream.

Parameters:
catalog - write this catalog
os - write to this OutputStream
Throws:
java.io.IOException - on error

writeXML

void writeXML(InvCatalogImpl catalog,
              java.io.OutputStream os,
              boolean raw)
              throws java.io.IOException
Throws:
java.io.IOException