public static boolean matches ( byte [ ] signature , int length ) { if ( length < 3 ) { return false ; } if ( signature [ 0 ] != ' ' ) { return false ; } if ( signature [ 1 ] != ' ' ) { return false ; } if ( signature [ 2 ] != ' ' ) { return false ; } return true ; }
Checks if the signature matches what is expected for a bzip2 file .