question: public void erase ( ) { byte [ ] bytes = null ; for ( ByteBuffer buffer : buffers ) { if ( bytes == null || bytes . length < buffer . limit ( ) ) bytes = new byte [ buffer . limit ( ) ] ; buffer . position ( 0 ) ; buffer . put ( bytes , 0 , buffer . limit ( ) ) ; buffer . position ( 0 ) ; } }
target:  erase file by setting all bytes to 0