diff options
author | 2014-02-24 06:00:50 -0800 | |
---|---|---|
committer | 2014-02-24 06:00:50 -0800 | |
commit | a6ab1f90657e3cbe91a11e8c64a16212a1070c48 (patch) | |
tree | 9214094f6008e98fcca15af9453ca4f232ad55b8 /java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java | |
parent | b7a224636cb9a1356089475ffbd9e45b3084b80d (diff) | |
parent | 6e224a236a0a7cd253f74c7ed8b9a8f2eea41600 (diff) | |
download | latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.tar.gz latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.tar.xz latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.zip |
am 6e224a23: Merge "Correctly read the header of APK-embedded dicts"
* commit '6e224a236a0a7cd253f74c7ed8b9a8f2eea41600':
Correctly read the header of APK-embedded dicts
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java index 989ca4b2f..90e7400fb 100644 --- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java +++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java @@ -237,7 +237,7 @@ public final class BinaryDictIOUtils { final File file, final long offset, final long length) throws FileNotFoundException, IOException, UnsupportedFormatException { final byte[] buffer = new byte[HEADER_READING_BUFFER_SIZE]; - final DictDecoder dictDecoder = FormatSpec.getDictDecoder(file, + final DictDecoder dictDecoder = FormatSpec.getDictDecoder(file, offset, length, new DictDecoder.DictionaryBufferFactory() { @Override public DictBuffer getDictionaryBuffer(File file) @@ -251,8 +251,7 @@ public final class BinaryDictIOUtils { inStream.close(); } } - } - ); + }); if (dictDecoder == null) { return null; } |