Package | Description |
---|---|
com.j256.simplemagic |
Top level code used externally.
|
com.j256.simplemagic.entries |
Internal storing of the entries read from the magic file(s).
|
Modifier and Type | Method and Description |
---|---|
void |
ContentInfoUtil.setErrorCallBack(ContentInfoUtil.ErrorCallBack errorCallBack)
Deprecated.
Not used since it is only passed into the constructor.
|
Constructor and Description |
---|
ContentInfoUtil(ContentInfoUtil.ErrorCallBack errorCallBack)
Construct a magic utility using the internal magic file built into the package.
|
ContentInfoUtil(File fileOrDirectory,
ContentInfoUtil.ErrorCallBack errorCallBack)
Construct a magic utility using the magic files from a file or a directory of files.
|
ContentInfoUtil(Reader reader,
ContentInfoUtil.ErrorCallBack errorCallBack)
Construct a magic utility using the magic file entries from a reader.
|
ContentInfoUtil(String fileOrDirectoryOrResourcePath,
ContentInfoUtil.ErrorCallBack errorCallBack)
Construct a magic utility using the magic files from a file or a directory of files.
|
Modifier and Type | Method and Description |
---|---|
static MagicEntry |
MagicEntryParser.parseLine(MagicEntry previous,
String line,
ContentInfoUtil.ErrorCallBack errorCallBack)
Parse a line from the magic configuration file into an entry.
|
void |
MagicEntries.readEntries(BufferedReader lineReader,
ContentInfoUtil.ErrorCallBack errorCallBack)
Read the entries so later we can find matches with them.
|
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.