diff options
author | 2013-08-23 04:32:36 -0700 | |
---|---|---|
committer | 2013-08-23 04:32:36 -0700 | |
commit | 6bdc19173f5e0c26766e2237dee105b512924605 (patch) | |
tree | d20317aa63f2768daa50756ab18a9957615ab65b /java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java | |
parent | b6a70ead78177a913e777ca6ee9660ee7ca25bab (diff) | |
parent | e9a10ff0f026b5ec458f116afc7a75806574cbcd (diff) | |
download | latinime-6bdc19173f5e0c26766e2237dee105b512924605.tar.gz latinime-6bdc19173f5e0c26766e2237dee105b512924605.tar.xz latinime-6bdc19173f5e0c26766e2237dee105b512924605.zip |
am e9a10ff0: Add DictDecoder.readDictionaryBinary.
* commit 'e9a10ff0f026b5ec458f116afc7a75806574cbcd':
Add DictDecoder.readDictionaryBinary.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java index b82b41c7d..8b1d60b39 100644 --- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java +++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java @@ -559,17 +559,9 @@ public final class BinaryDictDecoderUtils { * @return the created (or merged) dictionary. */ @UsedForTesting - public static FusionDictionary readDictionaryBinary(final Ver3DictDecoder dictDecoder, + /* package */ static FusionDictionary readDictionaryBinary(final Ver3DictDecoder dictDecoder, final FusionDictionary dict) throws FileNotFoundException, IOException, UnsupportedFormatException { - - // if the buffer has not been opened, open the buffer with bytebuffer. - if (dictDecoder.getDictBuffer() == null) dictDecoder.openDictBuffer( - new Ver3DictDecoder.DictionaryBufferFromReadOnlyByteBufferFactory()); - if (dictDecoder.getDictBuffer() == null) { - MakedictLog.e("Cannot open the buffer"); - } - // Read header final FileHeader fileHeader = dictDecoder.readHeader(); |