|
OOP MimeParser Version 3.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bentofw.util.MimeMapDic
public class MimeMapDic
Resolve the mime-type from the file name.
| Method Summary | |
|---|---|
static java.lang.String |
getFileExtension(java.lang.String file)
Return the extension for the specified file name, such as png or txt. |
java.lang.String |
getFileExtension4Mime(java.lang.String mime)
Return the file extension for the specified mime-type. |
static MimeMapDic |
getInstance()
Reads "WEB-INF/classes/mime.xml" and stores the mapping between the file extension and mime-type. |
java.lang.String |
getMimeType(java.lang.String file)
Return the mime-type for the specified file name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MimeMapDic getInstance()
throws NestedException,
NoPropertyFileException
NestedException
NoPropertyFileExceptiongetMimeType(String)public java.lang.String getMimeType(java.lang.String file)
file - file name
public java.lang.String getFileExtension4Mime(java.lang.String mime)
mime - mime-type
public static java.lang.String getFileExtension(java.lang.String file)
file - file name
|
OOP MimeParser Version 3.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.