public void setForRead ( ) { for ( ByteBuffer bb : bbs ) { bb . flip ( ) ; } if ( bbs . isEmpty ( ) ) { curr = null ; idx = 0 ; } else { curr = bbs . get ( 0 ) ; idx = 1 ; } }
Move state from Storage mode into Read mode changing all internal buffers to read mode etc