Commit ad2e63d5 by Michael Koch Committed by Michael Koch

2003-02-12 Michael Koch <konqueror@gmx.de>

	* java/nio/ByteBuffer.java
	(allocate): Implemented.
	(wrap): Implemented.
	* java/nio/CharBuffer.java:
	Some documentation added and reworked.
	(endian): Removed.
	(allocate): Implemented.
	(wrap): Implemented.
	(array): Throw exceptions.
	(arrayOffset): Throw exceptions.
	(toString): Implemented.
	(length): Implemented.
	(put): Implemented.
	(charAt): Implemented.

From-SVN: r62760
parent ceda50e9
2003-02-12 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java
(allocate): Implemented.
(wrap): Implemented.
* java/nio/CharBuffer.java:
Some documentation added and reworked.
(endian): Removed.
(allocate): Implemented.
(wrap): Implemented.
(array): Throw exceptions.
(arrayOffset): Throw exceptions.
(toString): Implemented.
(length): Implemented.
(put): Implemented.
(charAt): Implemented.
2003-02-11 John Leuner <jewel@debian.org>
* java/util/zip/ZipInputStream.java: Fix problem with 0-length
......
......@@ -37,6 +37,8 @@ exception statement from your version. */
package java.nio;
import gnu.java.nio.ByteBufferImpl;
/**
* @since 1.4
*/
......@@ -58,7 +60,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
*/
public static ByteBuffer allocate (int capacity)
{
return null;
return new ByteBufferImpl (capacity, 0, capacity);
}
/**
......@@ -69,7 +71,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
*/
final public static ByteBuffer wrap (byte[] array, int offset, int length)
{
return null;
return new ByteBufferImpl (array, offset, length);
}
/**
......
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