aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-10-09 18:54:36 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 18:54:36 -0700
commit1f6b9d7fefff6c94e63af5df8bc6e64879ad9316 (patch)
tree7560263c77c8081937dd99428785ee440f80152f /java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
parentaa958adfaf796abf127a2cb908d2993209cd44ca (diff)
parent10100b2c52fd6073b37eb3d8558439e62c6c9412 (diff)
downloadlatinime-1f6b9d7fefff6c94e63af5df8bc6e64879ad9316.tar.gz
latinime-1f6b9d7fefff6c94e63af5df8bc6e64879ad9316.tar.xz
latinime-1f6b9d7fefff6c94e63af5df8bc6e64879ad9316.zip
am 10100b2c: am 14d31d46: Add AbstractDictDecoder.
* commit '10100b2c52fd6073b37eb3d8558439e62c6c9412': Add AbstractDictDecoder.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
index 2d2da5fe0..bab24e301 100644
--- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
@@ -37,7 +37,7 @@ import java.util.Arrays;
* An implementation of binary dictionary decoder for version 4 binary dictionary.
*/
@UsedForTesting
-public class Ver4DictDecoder extends DictDecoder {
+public class Ver4DictDecoder extends AbstractDictDecoder {
private static final String TAG = Ver4DictDecoder.class.getSimpleName();
private static final int FILETYPE_TRIE = 1;
@@ -157,8 +157,7 @@ public class Ver4DictDecoder extends DictDecoder {
new File[] { contentFile }, FormatSpec.SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE);
}
-
- protected static class PtNodeReader extends DictDecoder.PtNodeReader {
+ protected static class PtNodeReader extends AbstractDictDecoder.PtNodeReader {
protected static int readFrequency(final DictBuffer frequencyBuffer, final int terminalId) {
frequencyBuffer.position(terminalId * FormatSpec.FREQUENCY_AND_FLAGS_SIZE + 1);
return frequencyBuffer.readUnsignedByte();