legacy/src/main/java/thredds/cataloggen/config/CatGenConfigMetadataFactory.java
private Object readMetadataContentFromURL( InvDataset dataset, String urlString)
    throws java.net.MalformedURLException, java.io.IOException
  {
    // @todo This isn't used anywhere. Remove?
    Document doc;
    try
    {
      SAXBuilder builder = new SAXBuilder( true);
      doc = builder.build( urlString);
    } catch ( JDOMException e)
    {
      log.error( "CatGenConfigMetadataFactory parsing error= \n" + e.getMessage());
      throw new java.io.IOException( "CatGenConfigMetadataFactory parsing error= " + e.getMessage());
    }

    if (showParsedXML)
    {
      XMLOutputter xmlOut = new XMLOutputter( Format.getPrettyFormat() );
      System.out.println ("*** catalog/showParsedXML = \n"+xmlOut.outputString(doc)+"\n*******");
    }

    return( readMetadataContentJdom( dataset, doc.getRootElement()));
  }
private Object readMetadataContentFromURL( InvDataset dataset, String urlString)
    throws java.net.MalformedURLException, java.io.IOException
  {
    // @todo This isn't used anywhere. Remove?
    Document doc;
    try
    {
      SAXBuilder builder = new SAXBuilder( true);
      doc = builder.build( urlString);
    } catch ( JDOMException e)
    {
      log.error( "CatGenConfigMetadataFactory parsing error= \n" + e.getMessage());
      throw new java.io.IOException( "CatGenConfigMetadataFactory parsing error= " + e.getMessage());
    }

    if (showParsedXML)
    {
      XMLOutputter xmlOut = new XMLOutputter( Format.getPrettyFormat() );
      System.out.println ("*** catalog/showParsedXML = \n"+xmlOut.outputString(doc)+"\n*******");
    }

    return( readMetadataContentJdom( dataset, doc.getRootElement()));
  }
private Object readMetadataContentFromURL ( InvDataset dataset , String urlString ) throws java . net . MalformedURLException , java . io . IOException { // @todo This isn't used anywhere. Remove? Document doc ; try { SAXBuilder builder = new SAXBuilder ( true ) ; doc = builder . build ( urlString ) ; } catch ( JDOMException e ) { log . error ( "CatGenConfigMetadataFactory parsing error= \n" + e . getMessage ( ) ) ; throw new java . io . IOException ( "CatGenConfigMetadataFactory parsing error= " + e . getMessage ( ) ) ; } if ( showParsedXML ) { XMLOutputter xmlOut = new XMLOutputter ( Format . getPrettyFormat ( ) ) ; System . out . println ( "*** catalog/showParsedXML = \n" + xmlOut . outputString ( doc ) + "\n*******" ) ; } return ( readMetadataContentJdom ( dataset , doc . getRootElement ( ) ) ) ; }
Create an InvMetadata content object from an XML document at a named URL.
The content object is an ArrayList of CatalogGenConfig instances.

@param dataset - the containing dataset
@param urlString - the URL where the XML doc is located.
@return
@throws java.net.MalformedURLException if given URL is malformed.
@throws java.io.IOException if problems reading from given URL
Create an InvMetadata content object from an XML document at a named URL . The content object is an ArrayList of CatalogGenConfig instances .