/[classpath]/classpath/java/nio/CharBuffer.java
ViewVC logotype

Diff of /classpath/java/nio/CharBuffer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mark, Tue Nov 26 22:24:04 2002 UTC revision 1.10 by mkoch, Fri Dec 20 15:28:35 2002 UTC
# Line 105  public abstract class CharBuffer extends Line 105  public abstract class CharBuffer extends
105     * @exception IndexOutOfBoundsException If the preconditions on the offset     * @exception IndexOutOfBoundsException If the preconditions on the offset
106     * and length parameters do not hold.     * and length parameters do not hold.
107     */     */
108    final public CharBuffer get (char[] dst, int offset, int length)    public CharBuffer get (char[] dst, int offset, int length)
109    {    {
110      if (offset < 0 ||      if (offset < 0 ||
111          offset > dst.length ||          offset > dst.length ||
# Line 125  public abstract class CharBuffer extends Line 125  public abstract class CharBuffer extends
125     * @exception BufferUnderflowException If there are fewer than length     * @exception BufferUnderflowException If there are fewer than length
126     * characters remaining in this buffer.     * characters remaining in this buffer.
127     */     */
128    final public CharBuffer get (char[] dst)    public CharBuffer get (char[] dst)
129    {    {
130      return get (dst, 0, dst.length);      return get (dst, 0, dst.length);
131    }    }
# Line 138  public abstract class CharBuffer extends Line 138  public abstract class CharBuffer extends
138     * @exception IllegalArgumentException If the source buffer is this buffer.     * @exception IllegalArgumentException If the source buffer is this buffer.
139     * @exception ReadOnlyBufferException If this buffer is read-only.     * @exception ReadOnlyBufferException If this buffer is read-only.
140     */     */
141    final public CharBuffer put (CharBuffer src)    public CharBuffer put (CharBuffer src)
142    {    {
143      if (src == this)      if (src == this)
144        throw new IllegalArgumentException ();        throw new IllegalArgumentException ();
# Line 160  public abstract class CharBuffer extends Line 160  public abstract class CharBuffer extends
160     * and length parameters do not hold.     * and length parameters do not hold.
161     * @exception ReadOnlyBufferException If this buffer is read-only.     * @exception ReadOnlyBufferException If this buffer is read-only.
162     */     */
163    final public CharBuffer put (char[] src, int offset, int length)    public CharBuffer put (char[] src, int offset, int length)
164    {    {
165      if (offset < 0 ||      if (offset < 0 ||
166          offset > src.length ||          offset > src.length ||

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26