legacy/src/main/java/thredds/catalog/query/DqcFactory.java
public void writeXML(QueryCapability dqc, OutputStream os) throws IOException {
    String ns = versionToNamespaceHash.get( dqc.getVersion() );
    DqcConvertIF fac = namespaceToDqcConverterHash.get( ns );

    if ( fac == null )
      fac = defaultConverter;

    fac.writeXML( dqc, os );
  }
public void writeXML(QueryCapability dqc, OutputStream os) throws IOException {
    String ns = versionToNamespaceHash.get( dqc.getVersion() );
    DqcConvertIF fac = namespaceToDqcConverterHash.get( ns );

    if ( fac == null )
      fac = defaultConverter;

    fac.writeXML( dqc, os );
  }
public void writeXML ( QueryCapability dqc , OutputStream os ) throws IOException { String ns = versionToNamespaceHash . get ( dqc . getVersion ( ) ) ; DqcConvertIF fac = namespaceToDqcConverterHash . get ( ns ) ; if ( fac == null ) fac = defaultConverter ; fac . writeXML ( dqc , os ) ; }
Write the catalog as an XML document to the specified stream.

@param dqc : write this QueryCapability to an XML representation.
@param os  write to this OutputStream
@throws IOException on an error.
Write the catalog as an XML document to the specified stream .