public class MagicEntries extends Object
Constructor and Description |
---|
MagicEntries() |
Modifier and Type | Method and Description |
---|---|
ContentInfo |
findMatch(byte[] bytes)
Find and return a match for the associated bytes.
|
void |
optimizeFirstBytes()
Optimize the magic entries by removing the first-bytes information into their own lists
|
void |
readEntries(BufferedReader lineReader,
ContentInfoUtil.ErrorCallBack errorCallBack)
Read the entries so later we can find matches with them.
|
public void readEntries(BufferedReader lineReader, ContentInfoUtil.ErrorCallBack errorCallBack) throws IOException
IOException
public void optimizeFirstBytes()
public ContentInfo findMatch(byte[] bytes)
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.