question: @ Override public long write ( final ByteBuffer input ) throws IOException { if ( ! setup ) { throw new IllegalStateException ( "not setup" ) ; } synchronized ( lock ) { writeEntry ( position ++ , input . asReadOnlyBuffer ( ) ) ; return position ; } }
target:  Write a buffer. It's limit will be used as the size of the buffer.