|
eXo Kernel :: Commons Utils 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.MimeTypeResolver
public class MimeTypeResolver
| Field Summary | |
|---|---|
protected static Log |
LOG
|
| Constructor Summary | |
|---|---|
MimeTypeResolver()
|
|
| Method Summary | |
|---|---|
String |
getDefaultMimeType()
Returns default MIMEType. |
String |
getExtension(String mimeType)
Get file extension corresponds to MIMEType. |
String |
getMimeType(String filename)
Get MIMEType which corresponds to file extension. |
String |
getMimeType(String fileName,
InputStream is)
Get MIMEType which corresponds to file content. |
protected void |
processLine(String aLine)
Load MIMEType and corresponding extension. |
void |
setDefaultMimeType(String defaultMimeType)
Set default MIMEType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log LOG
| Constructor Detail |
|---|
public MimeTypeResolver()
| Method Detail |
|---|
public String getDefaultMimeType()
public void setDefaultMimeType(String defaultMimeType)
defaultMimeType - String, default MIMETypepublic String getMimeType(String filename)
filename -
public String getMimeType(String fileName,
InputStream is)
fileName - is -
public String getExtension(String mimeType)
mimeType - MIMEType
protected void processLine(String aLine)
aLine -
|
eXo Kernel :: Commons Utils 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||