langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/SplitIndexWriter.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
80 * @param indexbuilder Unicode based Index from {@link IndexBuilder} |
80 * @param indexbuilder Unicode based Index from {@link IndexBuilder} |
81 * @param elements the collection of characters for which to generate index files |
81 * @param elements the collection of characters for which to generate index files |
82 * @param prev the previous character that was indexed |
82 * @param prev the previous character that was indexed |
83 * @param next the next character to be indexed |
83 * @param next the next character to be indexed |
84 */ |
84 */ |
85 public SplitIndexWriter(ConfigurationImpl configuration, |
85 public SplitIndexWriter(HtmlConfiguration configuration, |
86 DocPath path, |
86 DocPath path, |
87 IndexBuilder indexbuilder, |
87 IndexBuilder indexbuilder, |
88 Collection<Character> elements, |
88 Collection<Character> elements, |
89 int prev, int next) { |
89 int prev, int next) { |
90 super(configuration, path, indexbuilder); |
90 super(configuration, path, indexbuilder); |
99 * |
99 * |
100 * @param configuration the configuration for this doclet |
100 * @param configuration the configuration for this doclet |
101 * @param indexbuilder IndexBuilder built by {@link IndexBuilder} |
101 * @param indexbuilder IndexBuilder built by {@link IndexBuilder} |
102 * @throws DocFileIOException if there is a problem generating the index files |
102 * @throws DocFileIOException if there is a problem generating the index files |
103 */ |
103 */ |
104 public static void generate(ConfigurationImpl configuration, |
104 public static void generate(HtmlConfiguration configuration, |
105 IndexBuilder indexbuilder) throws DocFileIOException { |
105 IndexBuilder indexbuilder) throws DocFileIOException { |
106 DocPath path = DocPaths.INDEX_FILES; |
106 DocPath path = DocPaths.INDEX_FILES; |
107 Set<Character> keys = new TreeSet<>(indexbuilder.getIndexMap().keySet()); |
107 Set<Character> keys = new TreeSet<>(indexbuilder.getIndexMap().keySet()); |
108 keys.addAll(configuration.tagSearchIndexKeys); |
108 keys.addAll(configuration.tagSearchIndexKeys); |
109 ListIterator<Character> li = new ArrayList<>(keys).listIterator(); |
109 ListIterator<Character> li = new ArrayList<>(keys).listIterator(); |