X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FHtmlEntry.java;h=ca153a70126af7638ffcbed677a65402227e6eb8;hb=9cb5a8e2d7acacc8e01e5133e50a225550eb0501;hp=f5ea520992e5521e1e810f781432a2edbc677514;hpb=4111a81b6e009f52365d0b2d232056a2138d1a99;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/engine/HtmlEntry.java b/src/com/hughes/android/dictionary/engine/HtmlEntry.java index f5ea520..ca153a7 100644 --- a/src/com/hughes/android/dictionary/engine/HtmlEntry.java +++ b/src/com/hughes/android/dictionary/engine/HtmlEntry.java @@ -29,7 +29,7 @@ public class HtmlEntry extends AbstractEntry implements Comparable { } public HtmlEntry(Dictionary dictionary, DataInput raf, final int index) - throws IOException { + throws IOException { super(dictionary, raf, index); title = raf.readUTF(); lazyHtmlLoader = new LazyHtmlLoader(raf, dictionary.htmlData, index); @@ -138,12 +138,12 @@ public class HtmlEntry extends AbstractEntry implements Comparable { boolean isExpanded = false; Row(final DataInput raf, final int thisRowIndex, - final Index index, int extra) throws IOException { + final Index index, int extra) throws IOException { super(raf, thisRowIndex, index, extra); } Row(final int referenceIndex, final int thisRowIndex, - final Index index) { + final Index index) { super(referenceIndex, thisRowIndex, index); } @@ -170,8 +170,8 @@ public class HtmlEntry extends AbstractEntry implements Comparable { @Override public RowMatchType matches(final List searchTokens, - final Pattern orderedMatchPattern, final Transliterator normalizer, - final boolean swapPairEntries) { + final Pattern orderedMatchPattern, final Transliterator normalizer, + final boolean swapPairEntries) { final String text = normalizer.transform(getRawText(false)); if (orderedMatchPattern.matcher(text).find()) { return RowMatchType.ORDERED_MATCH; @@ -191,8 +191,8 @@ public class HtmlEntry extends AbstractEntry implements Comparable { for (final HtmlEntry htmlEntry : htmlEntries) { final String titleEscaped = StringUtil.escapeUnicodeToPureHtml(htmlEntry.title); result.append(String.format("

%s

\n

%s\n", - formatQuickdicUrl(indexShortName, htmlEntry.title), titleEscaped, - htmlEntry.getHtml())); + formatQuickdicUrl(indexShortName, htmlEntry.title), titleEscaped, + htmlEntry.getHtml())); } return result.toString(); } @@ -252,7 +252,7 @@ public class HtmlEntry extends AbstractEntry implements Comparable { return html; } System.out.println("Loading Html: numBytes=" + numBytes + ", numZipBytes=" - + numZipBytes); + + numZipBytes); final byte[] zipBytes = new byte[numZipBytes]; synchronized (raf) { try {