diff options
author | 2013-09-11 18:20:00 +0900 | |
---|---|---|
committer | 2013-09-12 16:49:54 +0900 | |
commit | be470f06e48e40a0def32e0f34e3ca48113937b5 (patch) | |
tree | 101aa0174b36cc953ce3ae1936b29ed724d287f2 /java/src/com/android/inputmethod/latin/makedict/DictDecoder.java | |
parent | 3508eb14c083a2d3e0f1671b926ebb4ec9302130 (diff) | |
download | latinime-be470f06e48e40a0def32e0f34e3ca48113937b5.tar.gz latinime-be470f06e48e40a0def32e0f34e3ca48113937b5.tar.xz latinime-be470f06e48e40a0def32e0f34e3ca48113937b5.zip |
Hide DictBuffer from BinaryDictDecoderUtils.
Bug: 9618601
Change-Id: I87515bc1555bdfe09426a056ceda74d8e63eba82
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; |