diff options
author | 2013-10-09 20:33:13 -0700 | |
---|---|---|
committer | 2013-10-09 20:33:13 -0700 | |
commit | 07dcb6acab44c771f8631c345468ce9202b5886f (patch) | |
tree | 7560263c77c8081937dd99428785ee440f80152f /java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java | |
parent | 8087791167c23fd3f1b6fb3a97a323f93e9e2a6c (diff) | |
parent | 1f6b9d7fefff6c94e63af5df8bc6e64879ad9316 (diff) | |
download | latinime-07dcb6acab44c771f8631c345468ce9202b5886f.tar.gz latinime-07dcb6acab44c771f8631c345468ce9202b5886f.tar.xz latinime-07dcb6acab44c771f8631c345468ce9202b5886f.zip |
am 1f6b9d7f: am 10100b2c: am 14d31d46: Add AbstractDictDecoder.
* commit '1f6b9d7fefff6c94e63af5df8bc6e64879ad9316':
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.java | 5 |
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(); |