Since all buffer impl classes are package private (except DirectByteBuffer),
this factory is the only entrance to access buffer functions from outside of
the impl package.
Returns a new array based byte buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based byte buffer with the specified capacity.
Returns a new readonly char buffer based on the specified char sequence.
Parameters: chseq - The char sequence A new readonly char buffer based on the specified char sequence.
Returns a new array based char buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based char buffer with the specified capacity.
newDirectByteBuffer
public static ByteBuffer newDirectByteBuffer(int capacity)(Code)
Returns a new direct byte buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new direct byte buffer with the specified capacity.
Returns a new double buffer based on the specified double array.
Parameters: array - The double array A new double buffer based on the specified double array.
Returns a new array based double buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based double buffer with the specified capacity.
Returns a new float buffer based on the specified float array.
Parameters: array - The float array A new float buffer based on the specified float array.
Returns a new array based float buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based float buffer with the specified capacity.
Returns a new array based int buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based int buffer with the specified capacity.
Returns a new array based long buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based long buffer with the specified capacity.
Returns a new array based short buffer with the specified capacity.
Parameters: capacity - The capacity of the new buffer A new array based short buffer with the specified capacity.
Returns a new short buffer based on the specified short array.
Parameters: array - The short array A new short buffer based on the specified short array.