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.

From-SVN: r62688
This commit is contained in:
Michael Koch 2003-02-11 09:44:57 +00:00 committed by Michael Koch
parent c728da61c6
commit 194ea9ced6
11 changed files with 57 additions and 618 deletions

View file

@ -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;