cdm/src/main/java/thredds/client/catalog/tools/CatalogXmlWriter.java
public void writeXML(Catalog catalog, OutputStream os, boolean raw) throws IOException {
    this.raw = raw;
    writeXML(catalog, os);
    this.raw = false;
  }
public void writeXML(Catalog catalog, OutputStream os, boolean raw) throws IOException {
    this.raw = raw;
    writeXML(catalog, os);
    this.raw = false;
  }
public void writeXML ( Catalog catalog , OutputStream os , boolean raw ) throws IOException { this . raw = raw ; writeXML ( catalog , os ) ; this . raw = false ; }
Write the catalog as an XML document to the specified stream.

@param catalog write this catalog
@param os      write to this OutputStream
@param raw     write raw file if true (for server configuration)
@throws java.io.IOException
Write the catalog as an XML document to the specified stream .