public class MagicMimeEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BELONG_TYPE |
static int |
BESHORT_TYPE |
static int |
BYTE_TYPE |
static int |
LELONG_TYPE |
static int |
LESHORT_TYPE |
static int |
SHORT_TYPE |
static int |
STRING_TYPE |
static int |
UNKNOWN_TYPE |
| Constructor and Description |
|---|
MagicMimeEntry(ArrayList entries) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCheckBytesFrom() |
String |
getContent() |
String |
getMatch(byte[] content) |
String |
getMatch(RandomAccessFile raf) |
String |
getMimeType() |
int |
getType() |
String |
toString() |
void |
traverseAndPrint(String tabs) |
public static final int STRING_TYPE
public static final int BELONG_TYPE
public static final int SHORT_TYPE
public static final int LELONG_TYPE
public static final int BESHORT_TYPE
public static final int LESHORT_TYPE
public static final int BYTE_TYPE
public static final int UNKNOWN_TYPE
public MagicMimeEntry(ArrayList entries) throws InvalidMagicMimeEntryException
InvalidMagicMimeEntryExceptionpublic void traverseAndPrint(String tabs)
public int getCheckBytesFrom()
public int getType()
public String getContent()
public String getMimeType()
public String getMatch(byte[] content) throws IOException
IOExceptionpublic String getMatch(RandomAccessFile raf) throws IOException
IOExceptionCopyright © 2015. All rights reserved.