public String getVolumeLabel ( ) { final StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < MAX_VOLUME_LABEL_LENGTH ; i ++ ) { final char c = ( char ) get8 ( VOLUME_LABEL_OFFSET + i ) ; if ( c != 0 ) { sb . append ( c ) ; } else { break ; } } return sb . toString ( ) ; }
Returns the volume label that is stored in this boot sector .