Returns a new byte buffer based on the specified byte array. @param array The byte array @return A new byte buffer based on the specified byte array.
(byte array[])
| 35 | * @return A new byte buffer based on the specified byte array. |
| 36 | */ |
| 37 | public static ByteBuffer newByteBuffer(byte array[]) { |
| 38 | return new ReadWriteHeapByteBuffer(array); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Returns a new array based byte buffer with the specified capacity. |