diff options
author | 2013-09-11 02:27:33 -0700 | |
---|---|---|
committer | 2013-09-11 02:27:33 -0700 | |
commit | 811e37b37bc543c5ab9c5010d08e2084b380bb80 (patch) | |
tree | aae224a3b49f9f963e5f37b0c09c10665098c6c4 /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java | |
parent | 4c69242e87114990fca6572060bec9aa955ab3ce (diff) | |
parent | 95bc256f419e9e47c26dfefd1ac31266dac2f344 (diff) | |
download | latinime-811e37b37bc543c5ab9c5010d08e2084b380bb80.tar.gz latinime-811e37b37bc543c5ab9c5010d08e2084b380bb80.tar.xz latinime-811e37b37bc543c5ab9c5010d08e2084b380bb80.zip |
am 95bc256f: Add a flag to readDictioanryBinary in DictDecoder.
* commit '95bc256f419e9e47c26dfefd1ac31266dac2f344':
Add a flag to readDictioanryBinary in DictDecoder.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DictDecoder.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/DictDecoder.java | 5 |
1 files changed, 4 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 11a3f0b3a..64638fd98 100644 --- a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java +++ b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java @@ -54,10 +54,13 @@ public interface DictDecoder { * which words from the buffer should be added. If it is null, a new dictionary is created. * * @param dict an optional dictionary to add words to, or null. + * @param deleteDictIfBroken a flag indicating whether this method should remove the broken + * dictionary or not. * @return the created (or merged) dictionary. */ @UsedForTesting - public FusionDictionary readDictionaryBinary(final FusionDictionary dict) + public FusionDictionary readDictionaryBinary(final FusionDictionary dict, + final boolean deleteDictIfBroken) throws FileNotFoundException, IOException, UnsupportedFormatException; /** |