Class CatalogXmlWriter


  • public class CatalogXmlWriter
    extends Object
    Write client side catalogs out as XML. Used for server catalogs too. Note there is no reference to the catalog's baseURI.
    Since:
    1/11/2015
    • Constructor Detail

      • CatalogXmlWriter

        public CatalogXmlWriter()
    • Method Detail

      • useBytesForDataSize

        public static void useBytesForDataSize​(boolean b)
      • writeXML

        public void writeXML​(Catalog catalog,
                             OutputStream os,
                             boolean raw)
                      throws IOException
        Write the catalog as an XML document to the specified stream.
        Parameters:
        catalog - write this catalog
        os - write to this OutputStream
        raw - write raw file if true (for server configuration)
        Throws:
        IOException
      • writeXML

        public void writeXML​(Catalog catalog,
                             OutputStream os)
                      throws IOException
        Write the catalog as an XML document to the specified stream.
        Parameters:
        catalog - write this catalog
        os - write to this OutputStream
        Throws:
        IOException
      • writeCatalog

        public org.jdom2.Document writeCatalog​(Catalog cat)
      • writeDate

        protected org.jdom2.Element writeDate​(String name,
                                              DateType date)
      • writeInheritedMetadata

        protected void writeInheritedMetadata​(org.jdom2.Element elem,
                                              Dataset ds)
      • writeTimeCoverage

        protected org.jdom2.Element writeTimeCoverage​(DateRange t)