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

* gnu/java/nio/FileChannelImpl.java
	(read): New implementation.
	(implRead): New methods.
	(write): New implementation, call other write insteal of read method.
	(implWrite): New methods.
	(map): Added comment.
	(transferFrom): Implemented.
	(transferTo): Implemented.
	(lock): Added checks to throw exceptions.
	(truncate): Added check to throw exception.
	* gnu/java/nio/natFileChannelImpl.cc
	(implRead): New method.
	(implWrite): New method.
	* java/nio/ByteBuffer.java
	(hashCode): Fixed comment.
	(get): Fixed exception documentation.
	(put): Fixed exception documentation.
	* java/nio/CharBuffer.java:
	Added comment for later optimizations.

From-SVN: r66373
This commit is contained in:
Michael Koch 2003-05-02 05:35:57 +00:00 committed by Michael Koch
parent c67528fe19
commit 4b6eac52d5
5 changed files with 131 additions and 43 deletions

View file

@ -83,6 +83,9 @@ public abstract class CharBuffer extends Buffer
*/
final public static CharBuffer wrap (CharSequence a, int offset, int length)
{
// FIXME: implement better handling of java.lang.String.
// Probably share data with String via reflection.
if ((offset < 0)
|| (offset > a.length ())
|| (length < 0)