diff options
author | 2013-11-29 10:31:36 +0000 | |
---|---|---|
committer | 2013-11-29 10:31:37 +0000 | |
commit | d7337a72bc27e77fd23fa47d5b9592dc8550ef74 (patch) | |
tree | f0900617555e02fb722d6945fd356e3935375c59 /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java | |
parent | 3f8c1d4a19bc8b27e81c3ab898d9417db4a50c8a (diff) | |
parent | 26c9af33a77f5a1af38b12cfd09639530327e9e1 (diff) | |
download | latinime-d7337a72bc27e77fd23fa47d5b9592dc8550ef74.tar.gz latinime-d7337a72bc27e77fd23fa47d5b9592dc8550ef74.tar.xz latinime-d7337a72bc27e77fd23fa47d5b9592dc8550ef74.zip |
Merge "Fix auto-detection of format 4."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DictDecoder.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/DictDecoder.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java index 91543986d..b4838f00f 100644 --- a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java +++ b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java @@ -128,7 +128,8 @@ public interface DictDecoder { * Opens the dictionary file and makes DictBuffer. */ @UsedForTesting - public void openDictBuffer() throws FileNotFoundException, IOException; + public void openDictBuffer() throws FileNotFoundException, IOException, + UnsupportedFormatException; @UsedForTesting public boolean isDictBufferOpen(); @@ -229,4 +230,9 @@ public interface DictDecoder { } public void skipPtNode(final FormatOptions formatOptions); + + /** + * @return whether this decoder has a valid binary dictionary that it can decode. + */ + public boolean hasValidRawBinaryDictionary(); } |