diff options
Diffstat (limited to 'libjava/java/nio/IntViewBufferImpl.java')
-rw-r--r-- | libjava/java/nio/IntViewBufferImpl.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/java/nio/IntViewBufferImpl.java b/libjava/java/nio/IntViewBufferImpl.java index 0749537..1f3f934 100644 --- a/libjava/java/nio/IntViewBufferImpl.java +++ b/libjava/java/nio/IntViewBufferImpl.java @@ -66,6 +66,13 @@ final class IntViewBufferImpl extends IntBuffer this.endian = endian; } + /** + * Reads the <code>int</code> at this buffer's current position, + * and then increments the position. + * + * @exception BufferUnderflowException If there are no remaining + * <code>ints</code> in this buffer. + */ public int get () { int p = position(); @@ -74,6 +81,13 @@ final class IntViewBufferImpl extends IntBuffer return result; } + /** + * Absolute get method. Reads the <code>int</code> at position + * <code>index</code>. + * + * @exception IndexOutOfBoundsException If index is negative or not smaller + * than the buffer's limit. + */ public int get (int index) { return ByteBufferHelper.getInt(bb, (index << 2) + offset, endian); |