Logo Search packages:      
Sourcecode: cacao-oj6 version File versions

final long [] java::nio::LongBuffer::array (  )  [inline]

Returns the long array that backs this buffer  (optional operation).

Modifications to this buffer's content will cause the returned array's content to be modified, and vice versa.

Invoke the hasArray method before invoking this method in order to ensure that this buffer has an accessible backing array.

The array that backs this buffer
ReadOnlyBufferException If this buffer is backed by an array but is read-only
UnsupportedOperationException If this buffer is not backed by an accessible array

Definition at line 955 of file LongBuffer.java.

        if (hb == null)
            throw new UnsupportedOperationException();
        if (isReadOnly)
            throw new ReadOnlyBufferException();
        return hb;

Generated by  Doxygen 1.6.0   Back to index