Content deleted Content added
No edit summary |
No edit summary |
||
Line 8:
In "Copying NIO Buffers", Method 1 is flawed. The buffer2 object is completely lost after executing "buffer2 = buffer1;". After completing the execution, buffer2 points actually to buffer1.
Last two points of "Some Usage Information for NIO Buffers" are completly wrong. NIO buffers don't block. get() into array larger than remaining() throws
BufferUnderflowException instead. get into an array behind read only buffer will proceed as usual - read only buffer is just a wrapper, but never gives
its clients the underlaying array anyway.
|