@Override public long write(final ByteBuffer input) throws IOException {
  if (!setup) {
    throw new IllegalStateException("not setup");
  }
synchronized (lock) {
    writeEntry(position++,input.asReadOnlyBuffer());
    return position;
  }
}

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