aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-08-23 04:32:36 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-23 04:32:36 -0700
commit6bdc19173f5e0c26766e2237dee105b512924605 (patch)
treed20317aa63f2768daa50756ab18a9957615ab65b /java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
parentb6a70ead78177a913e777ca6ee9660ee7ca25bab (diff)
parente9a10ff0f026b5ec458f116afc7a75806574cbcd (diff)
downloadlatinime-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.java10
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();