JAR Tools (101)
.mime.types - File Type Map
What is .mime.types file?
.mime.types is a configuration file stored in user's home directory to provide custom mapping between file MIME types and file name extension.
For example, the following .mime.types file in the "fyicenter" home directory maps two MIME types to different file name extensions. Fields in .mime.types file are separated by white spaces.
fyicenter> type c:\users\fyicenter\.mime.types text/plain txt text TXT TEXT java image/jpeg jpg jpeg JPG JPEG
If you run the JAF sample progam, ActivationTest.java, given in the previous tutorial with the above ".mime.types" file in the home directory, you will see:
fyicenter> java -version java version "17.0.5" 2022-10-18 LTS fyicenter> javac -classpath .:javax.activation-1.2.0.jar ActivationTest.java fyicenter> java -classpath .:javax.activation-1.2.0.jar ActivationTest ActivationTest.java getName() = ActivationTest.java getContentType() = text/plain
The output shows that the MIME type of "ActivationTest.java" is "text/plain", according to mappings given the ".mime.types" file.
⇒ JAF 1.2.0 JAR File - javax.activation-1.2.0.jar
⇐ Test Program on java.activation.DataSource
⇑ Downloading activation.jar - JavaBeans Activation Framework
2023-01-23, 141👍, 0💬
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
What Is javamail-1_2.zip? javamail-1_2.zip is the binary package of JavaMail API 1.2 in ZIP format. ...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...