diff options
Diffstat (limited to 'libjava/classpath/java/nio/DoubleBufferImpl.java')
-rw-r--r-- | libjava/classpath/java/nio/DoubleBufferImpl.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libjava/classpath/java/nio/DoubleBufferImpl.java b/libjava/classpath/java/nio/DoubleBufferImpl.java index bc292df646d..1608413535a 100644 --- a/libjava/classpath/java/nio/DoubleBufferImpl.java +++ b/libjava/classpath/java/nio/DoubleBufferImpl.java @@ -1,4 +1,4 @@ -/* DoubleBufferImpl.java -- +/* DoubleBufferImpl.java -- Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -49,37 +49,37 @@ final class DoubleBufferImpl extends DoubleBuffer { this (new double [capacity], 0, capacity, capacity, 0, -1, false); } - + DoubleBufferImpl (double[] buffer, int offset, int capacity, int limit, - int position, int mark, boolean readOnly) + int position, int mark, boolean readOnly) { super (capacity, limit, position, mark, null, buffer, offset); this.readOnly = readOnly; } - + public boolean isReadOnly () { return readOnly; } - + public DoubleBuffer slice () { return new DoubleBufferImpl (backing_buffer, array_offset + position (), - remaining (), remaining (), 0, -1, isReadOnly ()); + remaining (), remaining (), 0, -1, isReadOnly ()); } - + public DoubleBuffer duplicate () { return new DoubleBufferImpl (backing_buffer, array_offset, capacity (), - limit (), position (), mark, isReadOnly ()); + limit (), position (), mark, isReadOnly ()); } - + public DoubleBuffer asReadOnlyBuffer () { return new DoubleBufferImpl (backing_buffer, array_offset, capacity (), - limit (), position (), mark, true); + limit (), position (), mark, true); } - + public DoubleBuffer compact () { checkIfReadOnly(); @@ -95,7 +95,7 @@ final class DoubleBufferImpl extends DoubleBuffer limit(capacity()); return this; } - + public boolean isDirect () { return false; @@ -116,12 +116,12 @@ final class DoubleBufferImpl extends DoubleBuffer position (position () + 1); return result; } - + /** * Relative put method. Writes <code>value</code> to the next position * in the buffer. * - * @exception BufferOverflowException If there no remaining + * @exception BufferOverflowException If there no remaining * space in this buffer. * @exception ReadOnlyBufferException If this buffer is read-only. */ @@ -129,12 +129,12 @@ final class DoubleBufferImpl extends DoubleBuffer { checkIfReadOnly(); checkForOverflow(); - + backing_buffer [position ()] = value; position (position () + 1); return this; } - + /** * Absolute get method. Reads the <code>double</code> at position * <code>index</code>. @@ -148,7 +148,7 @@ final class DoubleBufferImpl extends DoubleBuffer return backing_buffer [index]; } - + /** * Absolute put method. Writes <code>value</code> to position * <code>index</code> in the buffer. @@ -165,7 +165,7 @@ final class DoubleBufferImpl extends DoubleBuffer backing_buffer [index] = value; return this; } - + public ByteOrder order () { return ByteOrder.nativeOrder (); |