Add put method to FusionDictionaryBufferInterface.

Change-Id: Iac0b35d2da05e81237d105e8fe13c56d16038de1
This commit is contained in:
Yuichiro Hanada 2012-09-11 15:52:26 +09:00
parent 9182daf98c
commit 8d031a63b4
2 changed files with 11 additions and 0 deletions

View file

@ -91,6 +91,11 @@ public class UserHistoryDictIOUtils {
public void position(int position) {
mPosition = position;
}
@Override
public void put(final byte b) {
mBuffer[mPosition++] = b;
}
}
/**

View file

@ -232,6 +232,7 @@ public class BinaryDictInputOutput {
public int readInt();
public int position();
public void position(int newPosition);
public void put(final byte b);
}
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
@ -271,6 +272,11 @@ public class BinaryDictInputOutput {
public void position(int newPos) {
mBuffer.position(newPos);
}
@Override
public void put(final byte b) {
mBuffer.put(b);
}
}
/**