aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-10-17 19:10:56 +0900
committerYuichiro Hanada <yhanada@google.com>2013-10-18 18:03:44 +0900
commit2b7110ff1f55f33ad411efef4184ce822040a10b (patch)
tree9b1465265ce4cb2c847cc4cf9be2f962c1b96dad /java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
parent19b247e79da7feba9c7b75900f090e7c325f47f4 (diff)
downloadlatinime-2b7110ff1f55f33ad411efef4184ce822040a10b.tar.gz
latinime-2b7110ff1f55f33ad411efef4184ce822040a10b.tar.xz
latinime-2b7110ff1f55f33ad411efef4184ce822040a10b.zip
(2/2) Implement insertWord in Ver4DictUpdater.
Change-Id: I2328a9df0a009b564e8acaf4180f9b0c1ed0901a
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
index ae344a2cd..f0fed3fda 100644
--- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
@@ -46,7 +46,7 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
protected static final int FILETYPE_BIGRAM_FREQ = 4;
protected static final int FILETYPE_SHORTCUT = 5;
- private final File mDictDirectory;
+ protected final File mDictDirectory;
protected final DictionaryBufferFactory mBufferFactory;
protected DictBuffer mDictBuffer;
protected DictBuffer mFrequencyBuffer;
@@ -178,7 +178,8 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
}
// TODO: Consolidate this method and BigramContentWriter.getContentFilenames.
- private static String[] getContentFilenames(final String name, final boolean hasTimestamp) {
+ protected static String[] getContentFilenames(final String name,
+ final boolean hasTimestamp) {
final String[] contentFilenames;
if (hasTimestamp) {
contentFilenames = new String[] { name + FormatSpec.BIGRAM_FILE_EXTENSION,
@@ -190,7 +191,7 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
}
// TODO: Consolidate this method and BigramContentWriter.getContentIds.
- private static String[] getContentIds(final boolean hasTimestamp) {
+ protected static String[] getContentIds(final boolean hasTimestamp) {
final String[] contentIds;
if (hasTimestamp) {
contentIds = new String[] { FormatSpec.BIGRAM_FREQ_CONTENT_ID,