aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-08-21 04:29:26 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-21 04:29:26 -0700
commit7f0ae85212914738ed5cb4b016dd4c34a05ef2b3 (patch)
tree430832879f7305820d38963cf6b2517c6337410a /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
parentdc3257246adeeaababa547910d09e585cfef7480 (diff)
parentf9233e0b98469a7e9e9a863d491a33593dba4bff (diff)
downloadlatinime-7f0ae85212914738ed5cb4b016dd4c34a05ef2b3.tar.gz
latinime-7f0ae85212914738ed5cb4b016dd4c34a05ef2b3.tar.xz
latinime-7f0ae85212914738ed5cb4b016dd4c34a05ef2b3.zip
am f9233e0b: Merge "Make readPtNode be called with the address from the beginning of the file."
* commit 'f9233e0b98469a7e9e9a863d491a33593dba4bff': Make readPtNode be called with the address from the beginning of the file.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/DictDecoder.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
index 144f91618..c02097fa7 100644
--- a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
@@ -35,11 +35,14 @@ import java.nio.channels.FileChannel;
*/
public interface DictDecoder {
public FileHeader readHeader() throws IOException, UnsupportedFormatException;
+
/**
- * Reads a PtNode and returns CharGroupInfo.
+ * Reads PtNode from nodeAddress.
+ * @param ptNodePos the position of PtNode.
+ * @param formatOptions the format options.
+ * @return CharGroupInfo.
*/
- public CharGroupInfo readPtNode(final int originalGroupAddress,
- final FormatOptions formatOptions);
+ public CharGroupInfo readPtNode(final int ptNodePos, final FormatOptions formatOptions);
public interface DictionaryBufferFactory {
public DictBuffer getDictionaryBuffer(final File file)