|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.util.MimeTypes
Maps mime types to their extensions
Constructor Summary | |
MimeTypes()
|
Method Summary | |
String |
getMimeType(String filename)
Returns the mime type associated with the extension of a filename |
Collection |
getMimeTypes()
Returns all known mime types |
void |
read(Reader in)
Read mime types definitions from a stream. |
void |
readDefaults()
Initialize with defaults builtin values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MimeTypes()
Method Detail |
public void readDefaults()
public void read(Reader in) throws IOException
The format of the stream must be:
mime-type [extension ...]
Tabulations are not supported as separators!!!
IOException
public String getMimeType(String filename)
public Collection getMimeTypes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |