ContentInfo matchBytes ( byte [ ] bytes ) { ContentData data = matchBytes ( bytes , 0 , 0 , null ) ; if ( data == null || data . name == MagicEntryParser . UNKNOWN_NAME ) { return null ; } else { return new ContentInfo ( data . name , data . mimeType , data . sb . toString ( ) , data . partial ) ; } }
Returns the content type associated with the bytes or null if it does not match .