| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Hashtable | extensionMap
Keyed by file extension (with the .), returns MimeEntries |
| private static final int | HASH_MARK
Hash mark introducing a URI fragment |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static void | |
| private MimeEntry | |
| private MimeEntry | Returns: the MIME entry associated with the file name ornullthe file name fname)Locate a MimeEntry by its associated file extension. |
| private static int | |
| public synchronized String | getContentTypeFor(String fileName)
Implements java. Gets the MIME type for the specified file name. |
| public static MimeTable | |
| private synchronized void | |
| private void | |
| private void | |
| private static void |
| extensionMap | back to summary |
|---|---|
| private final Hashtable<String, MimeEntry> extensionMap Keyed by file extension (with the .), returns MimeEntries | |
| HASH_MARK | back to summary |
|---|---|
| private static final int HASH_MARK Hash mark introducing a URI fragment | |
| MimeTable | back to summary |
|---|---|
| private MimeTable() | |
| add | back to summary |
|---|---|
| private void add(MimeEntry m) | |
| fill | back to summary |
|---|---|
| private static void fill(MimeEntry entry, String name, String value) | |
| findByFileExtension | back to summary |
|---|---|
| private MimeEntry findByFileExtension(String fname) Extracts the file extension and uses it to look up the entry. | |
| findByFileName | back to summary |
|---|---|
| private MimeEntry findByFileName(String fname) Locate a MimeEntry by its associated file extension. Parses general file names, and URLs. | |
| getActionCode | back to summary |
|---|---|
| private static int getActionCode(String action) | |
| getContentTypeFor | back to summary |
|---|---|
| public synchronized String getContentTypeFor(String fileName) Implements java. Doc from java. Gets the MIME type for the specified file name. | |
| getDefaultTable | back to summary |
|---|---|
| public static MimeTable getDefaultTable() Get the single instance of this class. First use will load the table from a data file. | |
| load | back to summary |
|---|---|
| private synchronized void load() | |
| parse | back to summary |
|---|---|
| private void parse(Properties entries) | |
| parse | back to summary |
|---|---|
| private void parse(String type, String attrs) | |
| parse | back to summary |
|---|---|
| private static void parse(String pair, MimeEntry entry) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final MimeTable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static MimeTable |
| defaultInstance | back to summary |
|---|---|
| private static final MimeTable defaultInstance | |
| DefaultInstanceHolder | back to summary |
|---|---|
| private DefaultInstanceHolder() | |
| getDefaultInstance | back to summary |
|---|---|
| private static MimeTable getDefaultInstance() | |