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);
        }
    }
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.

@param device the device to write the boot sector copy to
@throws IOException on write error
@see #getBootSectorCopySector()