| Package | Description |
|---|---|
| org.aoju.bus.storage.magic |
| Modifier and Type | Method and Description |
|---|---|
static MagicMatch |
Magic.getMagicMatch(byte[] data)
get a match from a stream of data
|
static MagicMatch |
Magic.getMagicMatch(byte[] data,
boolean onlyMimeMatch)
get a match from a stream of data
|
static MagicMatch |
Magic.getMagicMatch(File file,
boolean extensionHints)
get a match from a file
|
static MagicMatch |
Magic.getMagicMatch(File file,
boolean extensionHints,
boolean onlyMimeMatch)
get a match from a file
|
MagicMatch |
MagicMatcher.getMatch() |
MagicMatch |
MagicMatcher.test(byte[] data,
boolean onlyMimeMatch)
test to see if this match or any submatches match
|
MagicMatch |
MagicMatcher.test(File f,
boolean onlyMimeMatch)
test to see if this match or any submatches match
|
| Modifier and Type | Method and Description |
|---|---|
Collection<MagicMatch> |
MagicMatch.getSubMatches()
get all submatches for this magic match
|
| Modifier and Type | Method and Description |
|---|---|
void |
MagicMatch.addSubMatch(MagicMatch m)
add a submatch to this magic match
|
static void |
Magic.printMagicMatch(PrintStream stream,
MagicMatch match,
String spacing)
print a magic match
|
void |
MagicMatcher.setMatch(MagicMatch match) |
| Modifier and Type | Method and Description |
|---|---|
void |
MagicMatch.setSubMatches(Collection<MagicMatch> a)
set all submatches
|
Copyright © 2019. All rights reserved.