| java.lang.Object | |
| ↳ | com.sun.activation.registries.MimeTypeFile |
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| fname | |||||||||||
| type_hash | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
The construtor that takes a filename as an argument.
| |||||||||||
Creates an empty DB.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Appends string of entries to the types registry, must be valid
.mime.types format.
| |||||||||||
Get the MIME type string corresponding to the file extension.
| |||||||||||
get the MimeTypeEntry based on the file extension
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The construtor that takes a filename as an argument.
| new_fname | The file name of the mime types file. |
|---|
| IOException |
|---|
| is |
|---|
| IOException |
|---|
Creates an empty DB.
Appends string of entries to the types registry, must be valid .mime.types format. A mime.types entry is one of two forms: type/subtype ext1 ext2 ... or type=type/subtype desc="description of type" exts=ext1,ext2,... Example: # this is a test audio/basic au text/plain txt text type=application/postscript exts=ps,eps
| mime_types |
|---|
Get the MIME type string corresponding to the file extension.
| file_ext |
|---|
get the MimeTypeEntry based on the file extension
| file_ext |
|---|