import com.hughes.android.dictionary.engine.HtmlEntry;
import com.hughes.android.dictionary.engine.IndexBuilder;
import com.hughes.android.dictionary.engine.IndexBuilder.TokenData;
import com.hughes.android.dictionary.engine.HtmlEntry;
import com.hughes.android.dictionary.engine.IndexBuilder;
import com.hughes.android.dictionary.engine.IndexBuilder.TokenData;
- HtmlEntry htmlEntry = new HtmlEntry(entrySource, StringEscapeUtils.escapeHtml3(title));
- IndexedEntry indexedEntry = new IndexedEntry(htmlEntry);
+ assert entrySource != null;
+ final HtmlEntry htmlEntry = new HtmlEntry(entrySource, StringEscapeUtils.escapeHtml3(title));
+ indexedEntry = new IndexedEntry(htmlEntry);
tokenData.htmlEntries.add(htmlEntry);
// titleIndexBuilder.addEntryWithString(indexedEntry, title,
// EntryTypeName.WIKTIONARY_TITLE_MULTI_DETAIL);
tokenData.htmlEntries.add(htmlEntry);
// titleIndexBuilder.addEntryWithString(indexedEntry, title,
// EntryTypeName.WIKTIONARY_TITLE_MULTI_DETAIL);
static final Pattern ALL_ASCII = Pattern.compile("[\\p{ASCII}]*");
class AppendCallback extends AppendAndIndexWikiCallback<WholeSectionToHtmlParser> {
static final Pattern ALL_ASCII = Pattern.compile("[\\p{ASCII}]*");
class AppendCallback extends AppendAndIndexWikiCallback<WholeSectionToHtmlParser> {