aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-09-12 11:17:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-12 11:17:03 +0000
commita6dc3056ffefd40e8fa93060d096c80889e82633 (patch)
treea68fadaae3e563825de200fc7bfb2406f258e31e /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
parent28af9ed19ec5dceed631c2c9bd998ff163e963ec (diff)
parent0e40cd0c40f2c731f91ccd0561e251262e5a2614 (diff)
downloadlatinime-a6dc3056ffefd40e8fa93060d096c80889e82633.tar.gz
latinime-a6dc3056ffefd40e8fa93060d096c80889e82633.tar.xz
latinime-a6dc3056ffefd40e8fa93060d096c80889e82633.zip
Merge "Add getDictDecoder."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/DictDecoder.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
index 5e398bd41..40e852423 100644
--- a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
@@ -118,6 +118,14 @@ public interface DictDecoder {
public boolean readForwardLinkAndAdvancePosition();
public boolean hasNextPtNodeArray();
+ /**
+ * Opens the dictionary file and makes DictBuffer.
+ */
+ @UsedForTesting
+ public void openDictBuffer() throws FileNotFoundException, IOException;
+ @UsedForTesting
+ public boolean isOpenedDictBuffer();
+
// Flags for DictionaryBufferFactory.
public static final int USE_READONLY_BYTEBUFFER = 0x01000000;
public static final int USE_BYTEARRAY = 0x02000000;