public void writeCopy ( BlockDevice device ) throws IOException { if ( getBootSectorCopySector ( ) > 0 ) { final long offset = ( long ) getBootSectorCopySector ( ) * SIZE ; buffer . rewind ( ) ; buffer . limit ( buffer . capacity ( ) ) ; device . write ( offset , buffer ) ; } }
Writes a copy of this boot sector to the specified device if a copy is requested .