diff options
author | 2013-09-12 09:15:20 -0700 | |
---|---|---|
committer | 2013-09-12 09:15:20 -0700 | |
commit | a3be38ebc7c77942497dc0c8875633265e393080 (patch) | |
tree | 9d1fcabb8884f3e1588a0807355b88b71e7b085c /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java | |
parent | a1efc18927b0d91b0c6bfacd31817f92083bde04 (diff) | |
parent | be470f06e48e40a0def32e0f34e3ca48113937b5 (diff) | |
download | latinime-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.java | 27 |
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; |