code: private boolean matchesFingerprint(byte[] buffer, byte[] fingerprint)
     {
        return Arrays.equals(fingerprint, Arrays.copyOf(buffer, fingerprint.length));
     }
docs: Determine if the start of the buffer matches a fingerprint byte array.
  
  @param buffer bytes from file
  @param fingerprint fingerprint bytes
  @return true if the file matches the fingerprint