diff options
author | 2014-03-05 19:42:53 +0900 | |
---|---|---|
committer | 2014-03-05 19:42:53 +0900 | |
commit | de36b47d29b7d6bdfb448a97bef2dcc3f5649205 (patch) | |
tree | 53466873e0dc5ef3802d3fd67a9fcf78a22cbc12 /java/src/com/android/inputmethod/latin/makedict/FormatSpec.java | |
parent | e784148ae6872942434eaa55ca32b4c6442cc8e8 (diff) | |
download | latinime-de36b47d29b7d6bdfb448a97bef2dcc3f5649205.tar.gz latinime-de36b47d29b7d6bdfb448a97bef2dcc3f5649205.tar.xz latinime-de36b47d29b7d6bdfb448a97bef2dcc3f5649205.zip |
Use BinaryDictionaryUtils to read dictionary header.
Bug: 8187060
Bug:13035567
Change-Id: I90a5e0665c367f5a1bd786f4babf0d03e79e68fa
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/FormatSpec.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/FormatSpec.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java index 9abecbfec..484bb4b23 100644 --- a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java +++ b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java @@ -341,6 +341,7 @@ public final class FormatSpec { return null; } + @UsedForTesting public static DictDecoder getDictDecoder(final File dictFile, final long offset, final long length, final DictionaryBufferFactory factory) { if (dictFile.isDirectory()) { @@ -351,6 +352,7 @@ public final class FormatSpec { return null; } + @UsedForTesting public static DictDecoder getDictDecoder(final File dictFile, final long offset, final long length) { return getDictDecoder(dictFile, offset, length, DictDecoder.USE_READONLY_BYTEBUFFER); |