aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio/DoubleViewBufferImpl.java
diff options
context:
space:
mode:
authorDalibor Topic <robilad@kaffe.org>2004-07-09 13:40:29 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-07-09 13:40:29 +0000
commit23c41c08339da4bdf677ade01e17d940b7ce6201 (patch)
treec31d17690c1b5f17448be3c1f8e58e48109d8857 /libjava/java/nio/DoubleViewBufferImpl.java
parente484d7d5b33c3b6c9059d0e61fb08fd9e7f3bc68 (diff)
downloadgcc-23c41c08339da4bdf677ade01e17d940b7ce6201.zip
gcc-23c41c08339da4bdf677ade01e17d940b7ce6201.tar.gz
gcc-23c41c08339da4bdf677ade01e17d940b7ce6201.tar.bz2
Buffer.java, [...]: Fixed javadocs all over.
2004-07-09 Dalibor Topic <robilad@kaffe.org> * java/nio/Buffer.java, java/nio/ByteBuffer.java, java/nio/ByteBufferHelper.java, java/nio/ByteBufferImpl.java, java/nio/CharBuffer.java, java/nio/CharBufferImpl.java, java/nio/CharViewBufferImpl.java, java/nio/DirectByteBufferImpl.java, java/nio/DoubleBuffer.java, java/nio/DoubleBufferImpl.java, java/nio/DoubleViewBufferImpl.java, java/nio/FloatBuffer.java, java/nio/FloatBufferImpl.java, java/nio/FloatViewBufferImpl.java, java/nio/IntBuffer.java, java/nio/IntBufferImpl.java, java/nio/IntViewBufferImpl.java, java/nio/LongBuffer.java, java/nio/LongBufferImpl.java, java/nio/LongViewBufferImpl.java, java/nio/MappedByteBufferImpl.java, java/nio/ShortBuffer.java, java/nio/ShortBufferImpl.java, java/nio/ShortViewBufferImpl.java: Fixed javadocs all over. Improved input error checking. * java/nio/Buffer.java (checkForUnderflow, checkForOverflow, checkIndex, checkIfReadOnly, checkArraySize): New helper methods for error checking. * java/nio/ByteBufferHelper.java (checkRemainingForRead, checkRemainingForWrite, checkAvailableForRead, checkAvailableForWrite): Removed no longer needed methods. From-SVN: r84366
Diffstat (limited to 'libjava/java/nio/DoubleViewBufferImpl.java')
-rw-r--r--libjava/java/nio/DoubleViewBufferImpl.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/java/nio/DoubleViewBufferImpl.java b/libjava/java/nio/DoubleViewBufferImpl.java
index 7b04e4c..d23b14a 100644
--- a/libjava/java/nio/DoubleViewBufferImpl.java
+++ b/libjava/java/nio/DoubleViewBufferImpl.java
@@ -66,6 +66,13 @@ final class DoubleViewBufferImpl extends DoubleBuffer
this.endian = endian;
}
+ /**
+ * Reads the <code>double</code> at this buffer's current position,
+ * and then increments the position.
+ *
+ * @exception BufferUnderflowException If there are no remaining
+ * <code>double</code>s in this buffer.
+ */
public double get ()
{
int p = position();
@@ -74,6 +81,13 @@ final class DoubleViewBufferImpl extends DoubleBuffer
return result;
}
+ /**
+ * Absolute get method. Reads the <code>double</code> at position
+ * <code>index</code>.
+ *
+ * @exception IndexOutOfBoundsException If index is negative or not smaller
+ * than the buffer's limit.
+ */
public double get (int index)
{
return ByteBufferHelper.getDouble(bb, (index << 3) + offset, endian);