|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.util.MimeTypes
public class MimeTypes
Simple MimteType interface class
Method Summary | |
---|---|
static java.lang.String |
getMagicMimeType(byte[] firstBytes)
Returns the MimeType by checking against known the 'Magic' attribute of a file. |
static java.lang.String |
getMagicMimeType(java.io.File file)
|
static java.lang.String |
getMimeType(java.lang.String path)
Returns mimetype string by checking the extension or name of the file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getMimeType(java.lang.String path)
public static java.lang.String getMagicMimeType(byte[] firstBytes) throws VlException
firstBytes
- The first bytes of a file
VlException
public static java.lang.String getMagicMimeType(java.io.File file)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |