diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-11 09:44:57 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-11 09:44:57 +0000 |
commit | 2ab94420797ce3db177bc98908a301b2861738b5 (patch) | |
tree | 8cb311dd6e50521ad81865d52907437e75e5cd50 /libjava/java/nio | |
parent | 10f8154772a6ee6f2d5a036b5266fce6b701f856 (diff) | |
download | ppe42-gcc-2ab94420797ce3db177bc98908a301b2861738b5.tar.gz ppe42-gcc-2ab94420797ce3db177bc98908a301b2861738b5.zip |
2003-02-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natCharBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natDoubleBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natFloatBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natIntBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natLongBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natShortBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/SelectorProviderImpl.java
(openDatagramChannel): Throws IOException.
(openPipe): Throws IOException.
(openSelector): Throws IOException.
(openServerSocketChannel): Throws IOException.
(openSocketChannel): Throws IOException.
* gnu/java/nio/ServerSocketChannelImpl.java
(ServerSocketChannelImpl): Throws IOException.
(implCloseSelectableChannel): Throws IOException.
(implConfigureBlocking): Throws IOException.
* java/nio/ByteBuffer.java
(readOnly): Removed.
(hasArray): Use isReadOnly() instead of readOnly.
(array): Use isReadOnly() instead of readOnly.
(arrayOffset): Use isReadOnly() instead of readOnly.
* java/nio/CharBuffer.java
(CharBuffer): Implements Cloneable and CharSequence.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62688 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/nio')
-rw-r--r-- | libjava/java/nio/ByteBuffer.java | 7 | ||||
-rw-r--r-- | libjava/java/nio/CharBuffer.java | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libjava/java/nio/ByteBuffer.java b/libjava/java/nio/ByteBuffer.java index 380e6c67168..b46b320cbbd 100644 --- a/libjava/java/nio/ByteBuffer.java +++ b/libjava/java/nio/ByteBuffer.java @@ -43,7 +43,6 @@ package java.nio; public abstract class ByteBuffer extends Buffer implements Comparable { int offset; - boolean readOnly; byte[] backing_buffer; /** @@ -156,7 +155,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable public final boolean hasArray () { return (backing_buffer != null - && !readOnly); + && !isReadOnly ()); } /** @@ -172,7 +171,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable if (backing_buffer == null) throw new UnsupportedOperationException (); - if (readOnly) + if (isReadOnly ()) throw new ReadOnlyBufferException (); return backing_buffer; @@ -192,7 +191,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable if (backing_buffer == null) throw new UnsupportedOperationException (); - if (readOnly) + if (isReadOnly ()) throw new ReadOnlyBufferException (); return offset; diff --git a/libjava/java/nio/CharBuffer.java b/libjava/java/nio/CharBuffer.java index 0e61302c4e9..34aedebbd43 100644 --- a/libjava/java/nio/CharBuffer.java +++ b/libjava/java/nio/CharBuffer.java @@ -38,6 +38,7 @@ exception statement from your version. */ package java.nio; public abstract class CharBuffer extends Buffer + implements Cloneable, CharSequence { private ByteOrder endian = ByteOrder.BIG_ENDIAN; |