aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/DictEncoder.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-08-21 22:39:47 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-21 22:39:47 -0700
commitfb5c3956fd167bfa9dc7764d158d266380f88f28 (patch)
treed8dbdf10b7acc25c73ea4c14f37bcb507ff40f02 /java/src/com/android/inputmethod/latin/makedict/DictEncoder.java
parenta58953b823000e191e8dd1baf14169f0b2e90219 (diff)
parentfef693ea983eb4aacd3d1830e5d7608ede8ad451 (diff)
downloadlatinime-fb5c3956fd167bfa9dc7764d158d266380f88f28.tar.gz
latinime-fb5c3956fd167bfa9dc7764d158d266380f88f28.tar.xz
latinime-fb5c3956fd167bfa9dc7764d158d266380f88f28.zip
am fef693ea: Merge "Add DictEncoder."
* commit 'fef693ea983eb4aacd3d1830e5d7608ede8ad451': Add DictEncoder.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DictEncoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/DictEncoder.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/DictEncoder.java b/java/src/com/android/inputmethod/latin/makedict/DictEncoder.java
new file mode 100644
index 000000000..89c982e7b
--- /dev/null
+++ b/java/src/com/android/inputmethod/latin/makedict/DictEncoder.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.inputmethod.latin.makedict;
+
+import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
+
+import java.io.IOException;
+
+/**
+ * An interface of binary dictionary encoder.
+ */
+public interface DictEncoder {
+ public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions)
+ throws IOException, UnsupportedFormatException;
+}