aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-09-12 09:15:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-12 09:15:20 -0700
commita3be38ebc7c77942497dc0c8875633265e393080 (patch)
tree9d1fcabb8884f3e1588a0807355b88b71e7b085c /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
parenta1efc18927b0d91b0c6bfacd31817f92083bde04 (diff)
parentbe470f06e48e40a0def32e0f34e3ca48113937b5 (diff)
downloadlatinime-a3be38ebc7c77942497dc0c8875633265e393080.tar.gz
latinime-a3be38ebc7c77942497dc0c8875633265e393080.tar.xz
latinime-a3be38ebc7c77942497dc0c8875633265e393080.zip
am be470f06: Hide DictBuffer from BinaryDictDecoderUtils.
* commit 'be470f06e48e40a0def32e0f34e3ca48113937b5': Hide DictBuffer from BinaryDictDecoderUtils.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/DictDecoder.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
index 64638fd98..5e398bd41 100644
--- a/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/DictDecoder.java
@@ -91,6 +91,33 @@ public interface DictDecoder {
final TreeMap<Integer, ArrayList<PendingAttribute>> bigrams)
throws IOException, UnsupportedFormatException;
+ /**
+ * Sets the position of the buffer to the given value.
+ *
+ * @param newPos the new position
+ */
+ public void setPosition(final int newPos);
+
+ /**
+ * Gets the position of the buffer.
+ *
+ * @return the position
+ */
+ public int getPosition();
+
+ /**
+ * Reads and returns the PtNode count out of a buffer and forwards the pointer.
+ */
+ public int readPtNodeCount();
+
+ /**
+ * Reads the forward link and advances the position.
+ *
+ * @return if this method advances the position then true else false.
+ */
+ public boolean readForwardLinkAndAdvancePosition();
+ public boolean hasNextPtNodeArray();
+
// Flags for DictionaryBufferFactory.
public static final int USE_READONLY_BYTEBUFFER = 0x01000000;
public static final int USE_BYTEARRAY = 0x02000000;