|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.MimeTypeUtil
public class MimeTypeUtil
Utility class to determine MIME type
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_MIME_TYPE
Default Mime Type |
| Constructor Summary | |
|---|---|
MimeTypeUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getMimeType(byte[] bytes,
java.lang.String filename)
Gets the MIME type for the specified byte array and filename |
static java.lang.String |
getMimeType(java.io.File file)
Gets the MIME type for the specified file |
static java.lang.String |
getMimeType(java.io.InputStream in)
Gets the MIME type for the specified input stream |
static java.lang.String |
getMimeType(java.lang.String filename)
Gets the MIME type for the specified file name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_MIME_TYPE
| Constructor Detail |
|---|
public MimeTypeUtil()
| Method Detail |
|---|
public static java.lang.String getMimeType(java.lang.String filename)
filename - a file name
public static java.lang.String getMimeType(java.io.File file)
file - a file
public static java.lang.String getMimeType(java.io.InputStream in)
in - an input stream
public static java.lang.String getMimeType(byte[] bytes,
java.lang.String filename)
bytes - a byte arrayfilename - a file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||