SingleIndexWriterpublic class SingleIndexWriter extends AbstractIndexWriter Generate only one index file for all the Member Names with Indexing in
Unicode Order. The name of the generated file is "index-all.html" and it is
generated in current or the destination directory. |
Constructors Summary |
---|
public SingleIndexWriter(String filename, IndexBuilder indexbuilder)Construct the SingleIndexWriter with filename "index-all.html" and the
{@link IndexBuilder}
super(filename, indexbuilder);
|
Methods Summary |
---|
public static void | generate(IndexBuilder indexbuilder)Generate single index file, for all Unicode characters.
SingleIndexWriter indexgen;
String filename = "index-all.html";
try {
indexgen = new SingleIndexWriter(filename, indexbuilder);
indexgen.generateIndexFile();
indexgen.close();
} catch (IOException exc) {
Standard.configuration().standardmessage.error("doclet.exception_encountered",
exc.toString(), filename);
throw new DocletAbortException();
}
| protected void | generateIndexFile()Generate the contents of each index file, with Header, Footer,
Member Field, Method and Constructor Description.
printHeader(getText("doclet.Window_Single_Index",
Standard.configuration().windowtitle));
navLinks(true);
printLinksForIndexes();
hr();
for (int i = 0; i < indexbuilder.elements().length; i++) {
Character unicode = (Character)((indexbuilder.elements())[i]);
generateContents(unicode, indexbuilder.getMemberList(unicode));
}
printLinksForIndexes();
navLinks(false);
printBottom();
printBodyHtmlEnd();
| protected void | printLinksForIndexes()Print Links for all the Index Files per unicode character.
for (int i = 0; i < indexbuilder.elements().length; i++) {
String unicode = (indexbuilder.elements())[i].toString();
printHyperLink("#_" + unicode + "_", unicode);
print(' ");
}
|
|