|
||||||||||
| 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(InputStream is)
|
|
MimeTypeFile(String new_fname)
The construtor that takes a filename as an argument. |
|
| Method Summary | |
|---|---|
void |
appendToRegistry(String mime_types)
Appends string of entries to the types registry, must be valid .mime.types format. |
MimeTypeEntry |
getMimeTypeEntry(String file_ext)
get the MimeTypeEntry based on the file extension |
String |
getMIMETypeString(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(String new_fname)
throws IOException
new_fname - The file name of the mime types file.
IOException
public MimeTypeFile(InputStream is)
throws IOException
IOExceptionpublic MimeTypeFile()
| Method Detail |
|---|
public MimeTypeEntry getMimeTypeEntry(String file_ext)
public String getMIMETypeString(String file_ext)
public void appendToRegistry(String mime_types)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||