Commit 194ea9ce by Michael Koch Committed by Michael Koch

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
parent c728da61
2003-02-11 Michael Koch <konqueror@gmx.de> 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.
2003-02-11 Michael Koch <konqueror@gmx.de>
* java/nio/DoubleBuffer.java * java/nio/DoubleBuffer.java
(DoubleBuffer): Implements Comparable. (DoubleBuffer): Implements Comparable.
(endian): Removed. (endian): Removed.
......
...@@ -37,6 +37,7 @@ exception statement from your version. */ ...@@ -37,6 +37,7 @@ exception statement from your version. */
package gnu.java.nio; package gnu.java.nio;
import java.io.IOException;
import java.nio.channels.DatagramChannel; import java.nio.channels.DatagramChannel;
import java.nio.channels.Pipe; import java.nio.channels.Pipe;
import java.nio.channels.ServerSocketChannel; import java.nio.channels.ServerSocketChannel;
...@@ -51,26 +52,31 @@ public class SelectorProviderImpl extends SelectorProvider ...@@ -51,26 +52,31 @@ public class SelectorProviderImpl extends SelectorProvider
} }
public DatagramChannel openDatagramChannel () public DatagramChannel openDatagramChannel ()
throws IOException
{ {
return new DatagramChannelImpl (this); return new DatagramChannelImpl (this);
} }
public Pipe openPipe () public Pipe openPipe ()
throws IOException
{ {
return new PipeImpl (); return new PipeImpl ();
} }
public AbstractSelector openSelector () public AbstractSelector openSelector ()
throws IOException
{ {
return new SelectorImpl (this); return new SelectorImpl (this);
} }
public ServerSocketChannel openServerSocketChannel () public ServerSocketChannel openServerSocketChannel ()
throws IOException
{ {
return new ServerSocketChannelImpl (this); return new ServerSocketChannelImpl (this);
} }
public SocketChannel openSocketChannel () public SocketChannel openSocketChannel ()
throws IOException
{ {
return new SocketChannelImpl (this); return new SocketChannelImpl (this);
} }
......
...@@ -58,6 +58,7 @@ class ServerSocketChannelImpl extends ServerSocketChannel ...@@ -58,6 +58,7 @@ class ServerSocketChannelImpl extends ServerSocketChannel
SocketChannelImpl s); SocketChannelImpl s);
protected ServerSocketChannelImpl (SelectorProvider provider) protected ServerSocketChannelImpl (SelectorProvider provider)
throws IOException
{ {
super (provider); super (provider);
fd = SocketChannelImpl.SocketCreate (); fd = SocketChannelImpl.SocketCreate ();
...@@ -86,14 +87,14 @@ class ServerSocketChannelImpl extends ServerSocketChannel ...@@ -86,14 +87,14 @@ class ServerSocketChannelImpl extends ServerSocketChannel
} }
} }
protected void implCloseSelectableChannel () protected void implCloseSelectableChannel () throws IOException
{ {
connected = false; connected = false;
SocketChannelImpl.SocketClose (fd); SocketChannelImpl.SocketClose (fd);
fd = SocketChannelImpl.SocketCreate (); fd = SocketChannelImpl.SocketCreate ();
} }
protected void implConfigureBlocking (boolean block) protected void implConfigureBlocking (boolean block) throws IOException
{ {
blocking = block; blocking = block;
} }
......
...@@ -11,115 +11,13 @@ gnu::java::nio::CharBufferImpl::nio_cast(JArray<jbyte>*) ...@@ -11,115 +11,13 @@ gnu::java::nio::CharBufferImpl::nio_cast(JArray<jbyte>*)
return NULL; return NULL;
} }
JArray<jchar>*
gnu::java::nio::CharBufferImpl::nio_cast(JArray<jshort>*)
{
return NULL;
}
JArray<jchar>*
gnu::java::nio::CharBufferImpl::nio_cast(JArray<jint>*)
{
return NULL;
}
JArray<jchar>*
gnu::java::nio::CharBufferImpl::nio_cast(JArray<jlong>*)
{
return NULL;
}
JArray<jchar>*
gnu::java::nio::CharBufferImpl::nio_cast(JArray<jchar>*)
{
return NULL;
}
JArray<jchar>*
gnu::java::nio::CharBufferImpl::nio_cast(JArray<jfloat>*)
{
return NULL;
}
JArray<jchar>*
gnu::java::nio::CharBufferImpl::nio_cast(JArray<jdouble>*)
{
return NULL;
}
void void
gnu::java::nio::CharBufferImpl::nio_put_Byte(gnu::java::nio::CharBufferImpl*, jint, jint, jbyte) gnu::java::nio::CharBufferImpl::nio_put_Byte(gnu::java::nio::CharBufferImpl*, jint, jint, jbyte)
{ {
} }
void
gnu::java::nio::CharBufferImpl::nio_put_Char(gnu::java::nio::CharBufferImpl*, jint, jint, jchar)
{
}
void
gnu::java::nio::CharBufferImpl::nio_put_Short(gnu::java::nio::CharBufferImpl*, jint, jint, jshort)
{
}
void
gnu::java::nio::CharBufferImpl::nio_put_Int(gnu::java::nio::CharBufferImpl*, jint, jint, jint)
{
}
void
gnu::java::nio::CharBufferImpl::nio_put_Long(gnu::java::nio::CharBufferImpl*, jint, jint, jlong)
{
}
void
gnu::java::nio::CharBufferImpl::nio_put_Float(gnu::java::nio::CharBufferImpl*, jint, jint, jfloat)
{
}
void
gnu::java::nio::CharBufferImpl::nio_put_Double(gnu::java::nio::CharBufferImpl*, jint, jint, jdouble)
{
}
jbyte jbyte
gnu::java::nio::CharBufferImpl::nio_get_Byte(gnu::java::nio::CharBufferImpl*, jint, jint) gnu::java::nio::CharBufferImpl::nio_get_Byte(gnu::java::nio::CharBufferImpl*, jint, jint)
{ {
return 0; return 0;
} }
jchar
gnu::java::nio::CharBufferImpl::nio_get_Char(gnu::java::nio::CharBufferImpl*, jint, jint)
{
return ' ';
}
jshort
gnu::java::nio::CharBufferImpl::nio_get_Short(gnu::java::nio::CharBufferImpl*, jint, jint)
{
return 0;
}
jint
gnu::java::nio::CharBufferImpl::nio_get_Int(gnu::java::nio::CharBufferImpl*, jint, jint)
{
return 0;
}
jlong
gnu::java::nio::CharBufferImpl::nio_get_Long(gnu::java::nio::CharBufferImpl*, jint, jint)
{
return 0;
}
jfloat
gnu::java::nio::CharBufferImpl::nio_get_Float(gnu::java::nio::CharBufferImpl*, jint, jint)
{
return 0.0;
}
jdouble
gnu::java::nio::CharBufferImpl::nio_get_Double(gnu::java::nio::CharBufferImpl*, jint, jint)
{
return 0.0;
}
...@@ -11,115 +11,13 @@ gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jbyte>*) ...@@ -11,115 +11,13 @@ gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jbyte>*)
return NULL; return NULL;
} }
JArray<jdouble>*
gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jshort>*)
{
return NULL;
}
JArray<jdouble>*
gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jint>*)
{
return NULL;
}
JArray<jdouble>*
gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jlong>*)
{
return NULL;
}
JArray<jdouble>*
gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jchar>*)
{
return NULL;
}
JArray<jdouble>*
gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jfloat>*)
{
return NULL;
}
JArray<jdouble>*
gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jdouble>*)
{
return NULL;
}
void void
gnu::java::nio::DoubleBufferImpl::nio_put_Byte(gnu::java::nio::DoubleBufferImpl*, jint, jint, jbyte) gnu::java::nio::DoubleBufferImpl::nio_put_Byte(gnu::java::nio::DoubleBufferImpl*, jint, jint, jbyte)
{ {
} }
void
gnu::java::nio::DoubleBufferImpl::nio_put_Char(gnu::java::nio::DoubleBufferImpl*, jint, jint, jchar)
{
}
void
gnu::java::nio::DoubleBufferImpl::nio_put_Short(gnu::java::nio::DoubleBufferImpl*, jint, jint, jshort)
{
}
void
gnu::java::nio::DoubleBufferImpl::nio_put_Int(gnu::java::nio::DoubleBufferImpl*, jint, jint, jint)
{
}
void
gnu::java::nio::DoubleBufferImpl::nio_put_Long(gnu::java::nio::DoubleBufferImpl*, jint, jint, jlong)
{
}
void
gnu::java::nio::DoubleBufferImpl::nio_put_Float(gnu::java::nio::DoubleBufferImpl*, jint, jint, jfloat)
{
}
void
gnu::java::nio::DoubleBufferImpl::nio_put_Double(gnu::java::nio::DoubleBufferImpl*, jint, jint, jdouble)
{
}
jbyte jbyte
gnu::java::nio::DoubleBufferImpl::nio_get_Byte(gnu::java::nio::DoubleBufferImpl*, jint, jint) gnu::java::nio::DoubleBufferImpl::nio_get_Byte(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{ {
return 0; return 0;
} }
jchar
gnu::java::nio::DoubleBufferImpl::nio_get_Char(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{
return ' ';
}
jshort
gnu::java::nio::DoubleBufferImpl::nio_get_Short(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{
return 0;
}
jint
gnu::java::nio::DoubleBufferImpl::nio_get_Int(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{
return 0;
}
jlong
gnu::java::nio::DoubleBufferImpl::nio_get_Long(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{
return 0;
}
jfloat
gnu::java::nio::DoubleBufferImpl::nio_get_Float(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{
return 0.0;
}
jdouble
gnu::java::nio::DoubleBufferImpl::nio_get_Double(gnu::java::nio::DoubleBufferImpl*, jint, jint)
{
return 0.0;
}
...@@ -11,115 +11,13 @@ gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jbyte>*) ...@@ -11,115 +11,13 @@ gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jbyte>*)
return NULL; return NULL;
} }
JArray<jfloat>*
gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jshort>*)
{
return NULL;
}
JArray<jfloat>*
gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jint>*)
{
return NULL;
}
JArray<jfloat>*
gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jlong>*)
{
return NULL;
}
JArray<jfloat>*
gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jchar>*)
{
return NULL;
}
JArray<jfloat>*
gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jfloat>*)
{
return NULL;
}
JArray<jfloat>*
gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jdouble>*)
{
return NULL;
}
void void
gnu::java::nio::FloatBufferImpl::nio_put_Byte(gnu::java::nio::FloatBufferImpl*, jint, jint, jbyte) gnu::java::nio::FloatBufferImpl::nio_put_Byte(gnu::java::nio::FloatBufferImpl*, jint, jint, jbyte)
{ {
} }
void
gnu::java::nio::FloatBufferImpl::nio_put_Char(gnu::java::nio::FloatBufferImpl*, jint, jint, jchar)
{
}
void
gnu::java::nio::FloatBufferImpl::nio_put_Short(gnu::java::nio::FloatBufferImpl*, jint, jint, jshort)
{
}
void
gnu::java::nio::FloatBufferImpl::nio_put_Int(gnu::java::nio::FloatBufferImpl*, jint, jint, jint)
{
}
void
gnu::java::nio::FloatBufferImpl::nio_put_Long(gnu::java::nio::FloatBufferImpl*, jint, jint, jlong)
{
}
void
gnu::java::nio::FloatBufferImpl::nio_put_Float(gnu::java::nio::FloatBufferImpl*, jint, jint, jfloat)
{
}
void
gnu::java::nio::FloatBufferImpl::nio_put_Double(gnu::java::nio::FloatBufferImpl*, jint, jint, jdouble)
{
}
jbyte jbyte
gnu::java::nio::FloatBufferImpl::nio_get_Byte(gnu::java::nio::FloatBufferImpl*, jint, jint) gnu::java::nio::FloatBufferImpl::nio_get_Byte(gnu::java::nio::FloatBufferImpl*, jint, jint)
{ {
return 0; return 0;
} }
jchar
gnu::java::nio::FloatBufferImpl::nio_get_Char(gnu::java::nio::FloatBufferImpl*, jint, jint)
{
return ' ';
}
jshort
gnu::java::nio::FloatBufferImpl::nio_get_Short(gnu::java::nio::FloatBufferImpl*, jint, jint)
{
return 0;
}
jint
gnu::java::nio::FloatBufferImpl::nio_get_Int(gnu::java::nio::FloatBufferImpl*, jint, jint)
{
return 0;
}
jlong
gnu::java::nio::FloatBufferImpl::nio_get_Long(gnu::java::nio::FloatBufferImpl*, jint, jint)
{
return 0;
}
jfloat
gnu::java::nio::FloatBufferImpl::nio_get_Float(gnu::java::nio::FloatBufferImpl*, jint, jint)
{
return 0.0;
}
jdouble
gnu::java::nio::FloatBufferImpl::nio_get_Double(gnu::java::nio::FloatBufferImpl*, jint, jint)
{
return 0.0;
}
...@@ -11,115 +11,13 @@ gnu::java::nio::IntBufferImpl::nio_cast(JArray<jbyte>*) ...@@ -11,115 +11,13 @@ gnu::java::nio::IntBufferImpl::nio_cast(JArray<jbyte>*)
return NULL; return NULL;
} }
JArray<jint>*
gnu::java::nio::IntBufferImpl::nio_cast(JArray<jshort>*)
{
return NULL;
}
JArray<jint>*
gnu::java::nio::IntBufferImpl::nio_cast(JArray<jint>*)
{
return NULL;
}
JArray<jint>*
gnu::java::nio::IntBufferImpl::nio_cast(JArray<jlong>*)
{
return NULL;
}
JArray<jint>*
gnu::java::nio::IntBufferImpl::nio_cast(JArray<jchar>*)
{
return NULL;
}
JArray<jint>*
gnu::java::nio::IntBufferImpl::nio_cast(JArray<jfloat>*)
{
return NULL;
}
JArray<jint>*
gnu::java::nio::IntBufferImpl::nio_cast(JArray<jdouble>*)
{
return NULL;
}
void void
gnu::java::nio::IntBufferImpl::nio_put_Byte(gnu::java::nio::IntBufferImpl*, jint, jint, jbyte) gnu::java::nio::IntBufferImpl::nio_put_Byte(gnu::java::nio::IntBufferImpl*, jint, jint, jbyte)
{ {
} }
void
gnu::java::nio::IntBufferImpl::nio_put_Char(gnu::java::nio::IntBufferImpl*, jint, jint, jchar)
{
}
void
gnu::java::nio::IntBufferImpl::nio_put_Short(gnu::java::nio::IntBufferImpl*, jint, jint, jshort)
{
}
void
gnu::java::nio::IntBufferImpl::nio_put_Int(gnu::java::nio::IntBufferImpl*, jint, jint, jint)
{
}
void
gnu::java::nio::IntBufferImpl::nio_put_Long(gnu::java::nio::IntBufferImpl*, jint, jint, jlong)
{
}
void
gnu::java::nio::IntBufferImpl::nio_put_Float(gnu::java::nio::IntBufferImpl*, jint, jint, jfloat)
{
}
void
gnu::java::nio::IntBufferImpl::nio_put_Double(gnu::java::nio::IntBufferImpl*, jint, jint, jdouble)
{
}
jbyte jbyte
gnu::java::nio::IntBufferImpl::nio_get_Byte(gnu::java::nio::IntBufferImpl*, jint, jint) gnu::java::nio::IntBufferImpl::nio_get_Byte(gnu::java::nio::IntBufferImpl*, jint, jint)
{ {
return 0; return 0;
} }
jchar
gnu::java::nio::IntBufferImpl::nio_get_Char(gnu::java::nio::IntBufferImpl*, jint, jint)
{
return ' ';
}
jshort
gnu::java::nio::IntBufferImpl::nio_get_Short(gnu::java::nio::IntBufferImpl*, jint, jint)
{
return 0;
}
jint
gnu::java::nio::IntBufferImpl::nio_get_Int(gnu::java::nio::IntBufferImpl*, jint, jint)
{
return 0;
}
jlong
gnu::java::nio::IntBufferImpl::nio_get_Long(gnu::java::nio::IntBufferImpl*, jint, jint)
{
return 0;
}
jfloat
gnu::java::nio::IntBufferImpl::nio_get_Float(gnu::java::nio::IntBufferImpl*, jint, jint)
{
return 0.0;
}
jdouble
gnu::java::nio::IntBufferImpl::nio_get_Double(gnu::java::nio::IntBufferImpl*, jint, jint)
{
return 0.0;
}
...@@ -11,115 +11,13 @@ gnu::java::nio::LongBufferImpl::nio_cast(JArray<jbyte>*) ...@@ -11,115 +11,13 @@ gnu::java::nio::LongBufferImpl::nio_cast(JArray<jbyte>*)
return NULL; return NULL;
} }
JArray<jlong>*
gnu::java::nio::LongBufferImpl::nio_cast(JArray<jshort>*)
{
return NULL;
}
JArray<jlong>*
gnu::java::nio::LongBufferImpl::nio_cast(JArray<jint>*)
{
return NULL;
}
JArray<jlong>*
gnu::java::nio::LongBufferImpl::nio_cast(JArray<jlong>*)
{
return NULL;
}
JArray<jlong>*
gnu::java::nio::LongBufferImpl::nio_cast(JArray<jchar>*)
{
return NULL;
}
JArray<jlong>*
gnu::java::nio::LongBufferImpl::nio_cast(JArray<jfloat>*)
{
return NULL;
}
JArray<jlong>*
gnu::java::nio::LongBufferImpl::nio_cast(JArray<jdouble>*)
{
return NULL;
}
void void
gnu::java::nio::LongBufferImpl::nio_put_Byte(gnu::java::nio::LongBufferImpl*, jint, jint, jbyte) gnu::java::nio::LongBufferImpl::nio_put_Byte(gnu::java::nio::LongBufferImpl*, jint, jint, jbyte)
{ {
} }
void
gnu::java::nio::LongBufferImpl::nio_put_Char(gnu::java::nio::LongBufferImpl*, jint, jint, jchar)
{
}
void
gnu::java::nio::LongBufferImpl::nio_put_Short(gnu::java::nio::LongBufferImpl*, jint, jint, jshort)
{
}
void
gnu::java::nio::LongBufferImpl::nio_put_Int(gnu::java::nio::LongBufferImpl*, jint, jint, jint)
{
}
void
gnu::java::nio::LongBufferImpl::nio_put_Long(gnu::java::nio::LongBufferImpl*, jint, jint, jlong)
{
}
void
gnu::java::nio::LongBufferImpl::nio_put_Float(gnu::java::nio::LongBufferImpl*, jint, jint, jfloat)
{
}
void
gnu::java::nio::LongBufferImpl::nio_put_Double(gnu::java::nio::LongBufferImpl*, jint, jint, jdouble)
{
}
jbyte jbyte
gnu::java::nio::LongBufferImpl::nio_get_Byte(gnu::java::nio::LongBufferImpl*, jint, jint) gnu::java::nio::LongBufferImpl::nio_get_Byte(gnu::java::nio::LongBufferImpl*, jint, jint)
{ {
return 0; return 0;
} }
jchar
gnu::java::nio::LongBufferImpl::nio_get_Char(gnu::java::nio::LongBufferImpl*, jint, jint)
{
return ' ';
}
jshort
gnu::java::nio::LongBufferImpl::nio_get_Short(gnu::java::nio::LongBufferImpl*, jint, jint)
{
return 0;
}
jint
gnu::java::nio::LongBufferImpl::nio_get_Int(gnu::java::nio::LongBufferImpl*, jint, jint)
{
return 0;
}
jlong
gnu::java::nio::LongBufferImpl::nio_get_Long(gnu::java::nio::LongBufferImpl*, jint, jint)
{
return 0;
}
jfloat
gnu::java::nio::LongBufferImpl::nio_get_Float(gnu::java::nio::LongBufferImpl*, jint, jint)
{
return 0.0;
}
jdouble
gnu::java::nio::LongBufferImpl::nio_get_Double(gnu::java::nio::LongBufferImpl*, jint, jint)
{
return 0.0;
}
...@@ -11,115 +11,13 @@ gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jbyte>*) ...@@ -11,115 +11,13 @@ gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jbyte>*)
return NULL; return NULL;
} }
JArray<jshort>*
gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jshort>*)
{
return NULL;
}
JArray<jshort>*
gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jint>*)
{
return NULL;
}
JArray<jshort>*
gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jlong>*)
{
return NULL;
}
JArray<jshort>*
gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jchar>*)
{
return NULL;
}
JArray<jshort>*
gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jfloat>*)
{
return NULL;
}
JArray<jshort>*
gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jdouble>*)
{
return NULL;
}
void void
gnu::java::nio::ShortBufferImpl::nio_put_Byte(gnu::java::nio::ShortBufferImpl*, jint, jint, jbyte) gnu::java::nio::ShortBufferImpl::nio_put_Byte(gnu::java::nio::ShortBufferImpl*, jint, jint, jbyte)
{ {
} }
void
gnu::java::nio::ShortBufferImpl::nio_put_Char(gnu::java::nio::ShortBufferImpl*, jint, jint, jchar)
{
}
void
gnu::java::nio::ShortBufferImpl::nio_put_Short(gnu::java::nio::ShortBufferImpl*, jint, jint, jshort)
{
}
void
gnu::java::nio::ShortBufferImpl::nio_put_Int(gnu::java::nio::ShortBufferImpl*, jint, jint, jint)
{
}
void
gnu::java::nio::ShortBufferImpl::nio_put_Long(gnu::java::nio::ShortBufferImpl*, jint, jint, jlong)
{
}
void
gnu::java::nio::ShortBufferImpl::nio_put_Float(gnu::java::nio::ShortBufferImpl*, jint, jint, jfloat)
{
}
void
gnu::java::nio::ShortBufferImpl::nio_put_Double(gnu::java::nio::ShortBufferImpl*, jint, jint, jdouble)
{
}
jbyte jbyte
gnu::java::nio::ShortBufferImpl::nio_get_Byte(gnu::java::nio::ShortBufferImpl*, jint, jint) gnu::java::nio::ShortBufferImpl::nio_get_Byte(gnu::java::nio::ShortBufferImpl*, jint, jint)
{ {
return 0; return 0;
} }
jchar
gnu::java::nio::ShortBufferImpl::nio_get_Char(gnu::java::nio::ShortBufferImpl*, jint, jint)
{
return ' ';
}
jshort
gnu::java::nio::ShortBufferImpl::nio_get_Short(gnu::java::nio::ShortBufferImpl*, jint, jint)
{
return 0;
}
jint
gnu::java::nio::ShortBufferImpl::nio_get_Int(gnu::java::nio::ShortBufferImpl*, jint, jint)
{
return 0;
}
jlong
gnu::java::nio::ShortBufferImpl::nio_get_Long(gnu::java::nio::ShortBufferImpl*, jint, jint)
{
return 0;
}
jfloat
gnu::java::nio::ShortBufferImpl::nio_get_Float(gnu::java::nio::ShortBufferImpl*, jint, jint)
{
return 0.0;
}
jdouble
gnu::java::nio::ShortBufferImpl::nio_get_Double(gnu::java::nio::ShortBufferImpl*, jint, jint)
{
return 0.0;
}
...@@ -43,7 +43,6 @@ package java.nio; ...@@ -43,7 +43,6 @@ package java.nio;
public abstract class ByteBuffer extends Buffer implements Comparable public abstract class ByteBuffer extends Buffer implements Comparable
{ {
int offset; int offset;
boolean readOnly;
byte[] backing_buffer; byte[] backing_buffer;
/** /**
...@@ -156,7 +155,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable ...@@ -156,7 +155,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
public final boolean hasArray () public final boolean hasArray ()
{ {
return (backing_buffer != null return (backing_buffer != null
&& !readOnly); && !isReadOnly ());
} }
/** /**
...@@ -172,7 +171,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable ...@@ -172,7 +171,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
if (backing_buffer == null) if (backing_buffer == null)
throw new UnsupportedOperationException (); throw new UnsupportedOperationException ();
if (readOnly) if (isReadOnly ())
throw new ReadOnlyBufferException (); throw new ReadOnlyBufferException ();
return backing_buffer; return backing_buffer;
...@@ -192,7 +191,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable ...@@ -192,7 +191,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
if (backing_buffer == null) if (backing_buffer == null)
throw new UnsupportedOperationException (); throw new UnsupportedOperationException ();
if (readOnly) if (isReadOnly ())
throw new ReadOnlyBufferException (); throw new ReadOnlyBufferException ();
return offset; return offset;
......
...@@ -38,6 +38,7 @@ exception statement from your version. */ ...@@ -38,6 +38,7 @@ exception statement from your version. */
package java.nio; package java.nio;
public abstract class CharBuffer extends Buffer public abstract class CharBuffer extends Buffer
implements Cloneable, CharSequence
{ {
private ByteOrder endian = ByteOrder.BIG_ENDIAN; private ByteOrder endian = ByteOrder.BIG_ENDIAN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment