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

@ -251,7 +251,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
*/
public int hashCode()
{
// FIXME: Check what SUN calcs here
// FIXME: Check what SUN calculates here
return super.hashCode();
}
@ -344,7 +344,8 @@ public abstract class ByteBuffer extends Buffer implements Comparable
/**
* Absolute get method.
*
* @exception IndexOutOfBoundsException FIXME
* @exception IndexOutOfBoundsException If index &lt; 0 or index &gt;= this
* buffers limit.
*/
public abstract byte get (int index);
@ -352,7 +353,8 @@ public abstract class ByteBuffer extends Buffer implements Comparable
* Absolute put method.
*
* @exception ReadOnlyBufferException If this buffer is read-only
* @exception IndexOutOfBoundsException FIXME
* @exception IndexOutOfBoundsException If index &lt; 0 or index &gt;= this
* buffers limit.
*/
public abstract ByteBuffer put (int index, byte b);