|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.owasp.orizon.ident.FormatIdentification
public class FormatIdentification
Static helper class that tries to identify the file format for a given file or byte array representing the first bytes of a file.
FormatDescription desc = FormatIdentification.identify(new File("testfile.zip"));
if (desc != null) {
System.out.println(desc.getShortName());
}
| Method Summary | |
|---|---|
static FormatDescription |
identify(byte[] data)
|
static FormatDescription |
identify(java.io.File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FormatDescription identify(byte[] data)
public static FormatDescription identify(java.io.File file)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||