am ec2039aa: am 8d031a63: Add put method to FusionDictionaryBufferInterface.

* commit 'ec2039aa66168c475a703e3c4e0798845a948db2':
  Add put method to FusionDictionaryBufferInterface.
main
Yuichiro Hanada 2012-09-12 16:58:34 -07:00 committed by Android Git Automerger
commit 30543e01d9
2 changed files with 11 additions and 0 deletions

View File

@ -91,6 +91,11 @@ public class UserHistoryDictIOUtils {
public void position(int position) { public void position(int position) {
mPosition = 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 readInt();
public int position(); public int position();
public void position(int newPosition); public void position(int newPosition);
public void put(final byte b);
} }
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface { public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
@ -271,6 +272,11 @@ public class BinaryDictInputOutput {
public void position(int newPos) { public void position(int newPos) {
mBuffer.position(newPos); mBuffer.position(newPos);
} }
@Override
public void put(final byte b) {
mBuffer.put(b);
}
} }
/** /**