private void writeStyles( ) throws FileNotFoundException { writeIndexEntry( "Predefined Styles", "styles", "Styles defined by BIRT, usually as a \"default style\" for an element or slot." );  String fileName = "gen/styles.html"; writer = new PrintStream( new FileOutputStream( fileName ) );  writeln( "<!DOCTYPE html PUBLIC \"- write( "<html>\n<head>\n<title>" ); writeln( " Element (Eclipse BIRT ROM Documentation)</title>" ); writeln( "<link rel=\"stylesheet\" href=\"style/style.css\" type=\"text/css\"/>" ); writeln( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">" ); writeln( "</head>\n<body>" ); writeln( "<p class=\"title\">Eclipse BIRT Report Object Model (ROM)</p>" ); writeln( "<p class=\"subtitle\">Predefined Styles</p>" ); writeln( "<h1>Predefined Styles</h1>\n<table class=\"summary-table\">" );
private void writeStyles( ) throws IOException { writeIndexEntry( "Predefined Styles", "styles", "Styles defined by BIRT, usually as a \"default style\" for an element or slot." );  File output = makeFile( null, "styles.html" ); writer = new PrintStream( new FileOutputStream( output ) );  writeln( "<!DOCTYPE html PUBLIC \"- write( "<html>\n<head>\n<title>" ); writeln( " Element (Eclipse BIRT ROM Documentation)</title>" ); writeln( "<link rel=\"stylesheet\" href=\"style/style.css\" type=\"text/css\"/>" ); writeln( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">" ); writeln( "</head>\n<body>" ); writeln( "<p class=\"title\">Eclipse BIRT Report Object Model (ROM)</p>" ); writeln( "<p class=\"subtitle\">Predefined Styles</p>" ); writeln( "<h1>Predefined Styles</h1>\n<table class=\"summary-table\">" );
	private void writeStyles( ) throws FileNotFoundException	{		writeIndexEntry( "Predefined Styles", "styles",					"Styles defined by BIRT, usually as a \"default style\" for an element or slot." );				String fileName = "gen/styles.html";  //$NON-NLS-1$//$NON-NLS-2$		writer = new PrintStream( new FileOutputStream( fileName ) );				writeln( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 transitional//EN\">" );		write( "<html>\n<head>\n<title>" );		writeln( " Element (Eclipse BIRT ROM Documentation)</title>" );		writeln( "<link rel=\"stylesheet\" href=\"style/style.css\" type=\"text/css\"/>" );		writeln( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">" );		writeln( "</head>\n<body>" );		writeln( "<p class=\"title\">Eclipse BIRT Report Object Model (ROM)</p>" );		writeln( "<p class=\"subtitle\">Predefined Styles</p>" );		writeln( "<h1>Predefined Styles</h1>\n<table class=\"summary-table\">" );		MetaDataDictionary dict = MetaDataDictionary.getInstance( );		ArrayList list = new ArrayList( );		list.addAll( dict.getPredefinedStyles( ) );		Collections.sort( list, new StyleComparator( ) );		Iterator iter = list.iterator( );		while ( iter.hasNext( ) )		{			PredefinedStyle style = (PredefinedStyle) iter.next( );			write( "<tr><td><a name=\"" );			write( style.getName( ) );			write( "\">" );			write( style.getName( ) );			write( "</a></td>\n<td>" );			write( "" );			writeln( "</td></tr>" );		}		finishSummaryTable( );		writeFooter( );		writer.close( );	}