From 3372210f45e2d756987af79c3f0ac5f32540ba13 Mon Sep 17 00:00:00 2001 From: Mike Jensen Date: Thu, 16 Aug 2012 16:08:19 -0600 Subject: [PATCH] Added .get() implementation --- classpath/java/nio/ByteBuffer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/nio/ByteBuffer.java b/classpath/java/nio/ByteBuffer.java index 73da8fbc78..47eec8c1dc 100644 --- a/classpath/java/nio/ByteBuffer.java +++ b/classpath/java/nio/ByteBuffer.java @@ -173,6 +173,10 @@ public abstract class ByteBuffer return this; } + public byte get() { + return get(position++); + } + public byte get(int position) { checkGet(position, 1); return doGet(position);