|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.activation.registries.MimeTypeFile
public class MimeTypeFile
Constructor Summary | |
---|---|
MimeTypeFile()
Creates an empty DB. |
|
MimeTypeFile(java.io.InputStream is)
|
|
MimeTypeFile(java.lang.String new_fname)
The construtor that takes a filename as an argument. |
Method Summary | |
---|---|
void |
appendToRegistry(java.lang.String mime_types)
Appends string of entries to the types registry, must be valid .mime.types format. |
MimeTypeEntry |
getMimeTypeEntry(java.lang.String file_ext)
get the MimeTypeEntry based on the file extension |
java.lang.String |
getMIMETypeString(java.lang.String file_ext)
Get the MIME type string corresponding to the file extension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeTypeFile(java.lang.String new_fname) throws java.io.IOException
new_fname
- The file name of the mime types file.
java.io.IOException
public MimeTypeFile(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public MimeTypeFile()
Method Detail |
---|
public MimeTypeEntry getMimeTypeEntry(java.lang.String file_ext)
public java.lang.String getMIMETypeString(java.lang.String file_ext)
public void appendToRegistry(java.lang.String mime_types)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |