77 |
* @exception IndexOutOfBoundsException If the preconditions on the offset |
* @exception IndexOutOfBoundsException If the preconditions on the offset |
78 |
* and length parameters do not hold |
* and length parameters do not hold |
79 |
*/ |
*/ |
80 |
final public static ByteBuffer wrap (byte[] array, int offset, int length) |
public static final ByteBuffer wrap (byte[] array, int offset, int length) |
81 |
{ |
{ |
82 |
// FIXME: In GCJ and other implementations where arrays may not |
// FIXME: In GCJ and other implementations where arrays may not |
83 |
// move we might consider, at least when offset==0: |
// move we might consider, at least when offset==0: |
94 |
* Wraps a <code>byte</code> array into a <code>ByteBuffer</code> |
* Wraps a <code>byte</code> array into a <code>ByteBuffer</code> |
95 |
* object. |
* object. |
96 |
*/ |
*/ |
97 |
final public static ByteBuffer wrap (byte[] array) |
public static final ByteBuffer wrap (byte[] array) |
98 |
{ |
{ |
99 |
return wrap (array, 0, array.length); |
return wrap (array, 0, array.length); |
100 |
} |
} |