private boolean matchesFingerprint ( byte [ ] buffer , Pattern fingerprint ) { return fingerprint . matcher ( m_charset == null ? new String ( buffer ) : new String ( buffer , m_charset ) ) . matches ( ) ; }
Determine if the buffer when expressed as text matches a fingerprint regular expression .