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 || |
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 |
} |
} |
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 (); |
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 || |