Methods Summary |
---|
public static java.nio.ByteBuffer | newByteBuffer(byte[] array)Returns a new byte buffer based on the specified byte array.
return new ReadWriteHeapByteBuffer(array);
|
public static java.nio.ByteBuffer | newByteBuffer(int capacity)Returns a new array based byte buffer with the specified capacity.
return new ReadWriteHeapByteBuffer(capacity);
|
public static java.nio.CharBuffer | newCharBuffer(char[] array)Returns a new char buffer based on the specified char array.
return new ReadWriteCharArrayBuffer(array);
|
public static java.nio.CharBuffer | newCharBuffer(java.lang.CharSequence chseq)Returns a new readonly char buffer based on the specified char sequence.
return new CharSequenceAdapter(chseq);
|
public static java.nio.CharBuffer | newCharBuffer(int capacity)Returns a new array based char buffer with the specified capacity.
return new ReadWriteCharArrayBuffer(capacity);
|
public static java.nio.ByteBuffer | newDirectByteBuffer(int capacity)Returns a new direct byte buffer with the specified capacity.
return new ReadWriteDirectByteBuffer(capacity);
|
public static java.nio.DoubleBuffer | newDoubleBuffer(double[] array)Returns a new double buffer based on the specified double array.
return new ReadWriteDoubleArrayBuffer(array);
|
public static java.nio.DoubleBuffer | newDoubleBuffer(int capacity)Returns a new array based double buffer with the specified capacity.
return new ReadWriteDoubleArrayBuffer(capacity);
|
public static java.nio.FloatBuffer | newFloatBuffer(int capacity)Returns a new array based float buffer with the specified capacity.
return new ReadWriteFloatArrayBuffer(capacity);
|
public static java.nio.FloatBuffer | newFloatBuffer(float[] array)Returns a new float buffer based on the specified float array.
return new ReadWriteFloatArrayBuffer(array);
|
public static java.nio.IntBuffer | newIntBuffer(int capacity)Returns a new array based int buffer with the specified capacity.
return new ReadWriteIntArrayBuffer(capacity);
|
public static java.nio.IntBuffer | newIntBuffer(int[] array)Returns a new int buffer based on the specified int array.
return new ReadWriteIntArrayBuffer(array);
|
public static java.nio.LongBuffer | newLongBuffer(int capacity)Returns a new array based long buffer with the specified capacity.
return new ReadWriteLongArrayBuffer(capacity);
|
public static java.nio.LongBuffer | newLongBuffer(long[] array)Returns a new long buffer based on the specified long array.
return new ReadWriteLongArrayBuffer(array);
|
public static java.nio.ShortBuffer | newShortBuffer(int capacity)Returns a new array based short buffer with the specified capacity.
return new ReadWriteShortArrayBuffer(capacity);
|
public static java.nio.ShortBuffer | newShortBuffer(short[] array)Returns a new short buffer based on the specified short array.
return new ReadWriteShortArrayBuffer(array);
|