diff options
Diffstat (limited to 'libjava/classpath/java/nio/LongBufferImpl.java')
-rw-r--r-- | libjava/classpath/java/nio/LongBufferImpl.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libjava/classpath/java/nio/LongBufferImpl.java b/libjava/classpath/java/nio/LongBufferImpl.java index 4cf922b..85502c1 100644 --- a/libjava/classpath/java/nio/LongBufferImpl.java +++ b/libjava/classpath/java/nio/LongBufferImpl.java @@ -1,4 +1,4 @@ -/* LongBufferImpl.java -- +/* LongBufferImpl.java -- Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -49,37 +49,37 @@ final class LongBufferImpl extends LongBuffer { this (new long [capacity], 0, capacity, capacity, 0, -1, false); } - + LongBufferImpl (long[] 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 LongBuffer slice () { return new LongBufferImpl (backing_buffer, array_offset + position (), - remaining (), remaining (), 0, -1, isReadOnly ()); + remaining (), remaining (), 0, -1, isReadOnly ()); } - + public LongBuffer duplicate () { return new LongBufferImpl (backing_buffer, array_offset, capacity (), limit (), - position (), mark, isReadOnly ()); + position (), mark, isReadOnly ()); } - + public LongBuffer asReadOnlyBuffer () { return new LongBufferImpl (backing_buffer, array_offset, capacity (), limit (), - position (), mark, true); + position (), mark, true); } - + public LongBuffer compact () { checkIfReadOnly(); @@ -95,7 +95,7 @@ final class LongBufferImpl extends LongBuffer limit(capacity()); return this; } - + public boolean isDirect () { return false; @@ -116,7 +116,7 @@ final class LongBufferImpl extends LongBuffer position (position () + 1); return result; } - + /** * Relative put method. Writes <code>value</code> to the next position * in the buffer. @@ -134,7 +134,7 @@ final class LongBufferImpl extends LongBuffer position (position () + 1); return this; } - + /** * Absolute get method. Reads the <code>long</code> at position * <code>index</code>. @@ -148,7 +148,7 @@ final class LongBufferImpl extends LongBuffer 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 LongBufferImpl extends LongBuffer backing_buffer [index] = value; return this; } - + public ByteOrder order () { return ByteOrder.nativeOrder (); |