protected static interface FileAnalyzerFactory.Matcher
Modifier and Type | Method and Description |
---|---|
FileAnalyzerFactory |
isMagic(byte[] contents,
java.io.InputStream in)
Try to match the file contents with an analyzer factory.
|
FileAnalyzerFactory isMagic(byte[] contents, java.io.InputStream in) throws java.io.IOException
contents
- the first few bytes of a filein
- the input stream from which the full file can be readnull
if they don't match any factory known by this matcherjava.io.IOException