public static void createOverviews(ASDocConfiguration config) throws CompilerException {
  String templatesPath=config.getTemplatesPath();
  String ditaPath=config.getOutput() + "tempdita" + File.separator;
  BufferedWriter writer=null;
  Reader reader=null;
  try {
    writer=new BufferedWriter(new FileWriter(ditaPath + "overviews.xml"));
    if (config.getPackageDescriptionFile() != null) {
      reader=new BufferedReader(new FileReader(config.getPackageDescriptionFile()));
    }
 else {
      reader=new BufferedReader(new FileReader(templatesPath + "Overviews_Base.xml"));
    }
    OverviewsHandler h=new OverviewsHandler(writer,config);
    InputSource source=new InputSource(reader);
    SAXParserFactory factory=SAXParserFactory.newInstance();
    SAXParser parser=factory.newSAXParser();
    parser.parse(source,h);
  }
 catch (  Exception e) {
    if (Trace.error)     e.printStackTrace();
    CompilerMessage c=new CouldNotCreate("overviews.xml",e.getMessage());
    ThreadLocalToolkit.log(c);
    throw c;
  }
 finally {
    if (writer != null) {
      try {
        writer.close();
      }
 catch (      IOException ioe) {
      }
    }
    if (reader != null) {
      try {
        reader.close();
      }
 catch (      IOException ioe) {
      }
    }
  }
}

public static void createOverviews ( ASDocConfiguration config ) throws CompilerException { String templatesPath = config . getTemplatesPath ( ) ; String ditaPath = config . getOutput ( ) + "tempdita" + File . separator ; BufferedWriter writer = null ; Reader reader = null ; try { writer = new BufferedWriter ( new FileWriter ( ditaPath + "overviews.xml" ) ) ; if ( config . getPackageDescriptionFile ( ) != null ) { reader = new BufferedReader ( new FileReader ( config . getPackageDescriptionFile ( ) ) ) ; } else { reader = new BufferedReader ( new FileReader ( templatesPath + "Overviews_Base.xml" ) ) ; } OverviewsHandler h = new OverviewsHandler ( writer , config ) ; InputSource source = new InputSource ( reader ) ; SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; SAXParser parser = factory . newSAXParser ( ) ; parser . parse ( source , h ) ; } catch ( Exception e ) { if ( Trace . error ) e . printStackTrace ( ) ; CompilerMessage c = new CouldNotCreate ( "overviews.xml" , e . getMessage ( ) ) ; ThreadLocalToolkit . log ( c ) ; throw c ; } finally { if ( writer != null ) { try { writer . close ( ) ; } catch ( IOException ioe ) { } } if ( reader != null ) { try { reader . close ( ) ; } catch ( IOException ioe ) { } } } }
reads the overviews_base . xml from the templates folder and creates a temporary overviews . xml in the output folder
