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 | Field and Description |
---|---|
static ContentInfo |
ContentInfo.EMPTY_INFO |
Modifier and Type | Method and Description |
---|---|
static ContentInfo |
ContentInfoUtil.findExtensionMatch(String name)
Return the content type if the extension from the file-name matches our internal list.
|
ContentInfo |
ContentInfoInputStreamWrapper.findMatch()
Find a match from the bytes that have been read from the stream using
ContentInfoUtil.findMatch(byte[]) . |
ContentInfo |
ContentInfoUtil.findMatch(byte[] bytes)
Return the content type from the associated bytes or null if none of the magic entries matched.
|
ContentInfo |
ContentInfoUtil.findMatch(File file)
Return the content type for the file or null if none of the magic entries matched.
|
ContentInfo |
ContentInfoUtil.findMatch(InputStream inputStream)
Return the content type for the input-stream or null if none of the magic entries matched.
|
ContentInfo |
ContentInfoUtil.findMatch(String filePath)
Return the content type for the file-path or null if none of the magic entries matched.
|
static ContentInfo |
ContentInfoUtil.findMimeTypeMatch(String mimeType)
Return the content type if the mime-type matches our internal list.
|
Modifier and Type | Method and Description |
---|---|
ContentInfo |
MagicEntries.findMatch(byte[] bytes)
Find and return a match for the associated bytes.
|
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.