checks if buffer is read-only . this method is used internally to check if elements can be put into a buffer . concode_field_sep int limit concode_elem_sep int mark concode_elem_sep RawData address concode_elem_sep int cap concode_elem_sep int pos concode_field_sep boolean hasRemaining concode_elem_sep Buffer clear concode_elem_sep void checkIndex concode_elem_sep int remaining concode_elem_sep void checkArraySize concode_elem_sep int capacity concode_elem_sep boolean isReadOnly concode_elem_sep void checkForUnderflow concode_elem_sep void checkForUnderflow concode_elem_sep Buffer rewind concode_elem_sep int limit concode_elem_sep Buffer limit concode_elem_sep Buffer reset concode_elem_sep int position concode_elem_sep Buffer position concode_elem_sep Buffer flip concode_elem_sep void checkForOverflow concode_elem_sep void checkForOverflow concode_elem_sep Buffer mark
void function ( ) { if ( isReadOnly ( ) ) throw new ReadOnlyBufferException ( ) ; }