Method Summary |
|
public synchronized void | add(MimeEntry m) |
public synchronized Enumeration | elements() |
void | fill(MimeEntry entry, String name, String value) |
public synchronized MimeEntry | find(String type) |
public synchronized MimeEntry | findByDescription(String description) |
public synchronized MimeEntry | findByExt(String fileExtension) Locate a MimeEntry by the file extension that has been associated
with it. |
public MimeEntry | findByFileName(String fname) Locate a MimeEntry by the file extension that has been associated
with it. |
int | getActionCode(String action) |
public Properties | getAsProperties() |
public synchronized String | getContentTypeFor(String fileName) |
public static MimeTable | getDefaultTable() Get the single instance of this class. |
String[] | getExtensions(String list) |
public synchronized int | getSize() |
String | getTempFileTemplate() |
public synchronized void | load() |
public static FileNameMap | loadTable() |
void | parse(Properties entries) |
void | parse(String type, String attrs) |
void | parse(String pair, MimeEntry entry) |
public synchronized MimeEntry | remove(String type) |
public synchronized MimeEntry | remove(MimeEntry entry) |
public synchronized boolean | save(String filename) |
protected boolean | saveAsProperties(File file) |