From 2c478ce37c601f4a6a5f39aebe32aaa236ffebf6 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Fri, 9 May 2003 07:55:59 +0000 Subject: 2003-05-09 Michael Koch * gnu/java/nio/ByteBufferImpl.java (nio_cast): Removed. (ByteBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. (asCharBuffer): Removed implementation and throw exception. (asShortBuffer): Likewise. (asIntBuffer): Likewise. (asLongBuffer): Likewise. (asFloatBuffer): Likewise. (asDoubleBuffer): Likewise. * gnu/java/nio/CharBufferImpl.java (CharBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. * gnu/java/nio/DoubleBufferImpl.java (DoubleBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. * gnu/java/nio/FloatBufferImpl.java (FloatBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. * gnu/java/nio/IntBufferImpl.java (IntBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. * gnu/java/nio/LongBufferImpl.java (LongBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. * gnu/java/nio/ShortBufferImpl.java (ShortBufferImpl): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. (asByteBuffer): Removed. * gnu/java/nio/natByteBufferImpl.cc (nio_cast): Removed. (nio_get_Byte): Removed. (nio_put_Byte): Removed. * gnu/java/nio/natCharBufferImpl.cc (nio_get_Byte): Removed. (nio_put_Byte): Removed. From-SVN: r66626 --- libjava/gnu/java/nio/IntBufferImpl.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'libjava/gnu/java/nio/IntBufferImpl.java') diff --git a/libjava/gnu/java/nio/IntBufferImpl.java b/libjava/gnu/java/nio/IntBufferImpl.java index d9f8063..cfa3efe 100644 --- a/libjava/gnu/java/nio/IntBufferImpl.java +++ b/libjava/gnu/java/nio/IntBufferImpl.java @@ -70,26 +70,6 @@ public final class IntBufferImpl extends IntBuffer readOnly = copy.isReadOnly (); } - private static native int[] nio_cast (byte[] copy); - - IntBufferImpl (byte[] copy) - { - super (copy.length, copy.length, 0, 0); - this.backing_buffer = copy != null ? nio_cast (copy) : null; - readOnly = false; - } - - private static native byte nio_get_Byte (IntBufferImpl b, int index, int limit); - - private static native void nio_put_Byte (IntBufferImpl b, int index, int limit, byte value); - - public ByteBuffer asByteBuffer () - { - ByteBufferImpl res = new ByteBufferImpl (backing_buffer); - res.limit ((limit () * 1) / 4); - return res; - } - public boolean isReadOnly() { return readOnly; -- cgit v1.1