Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
.mime.types - File Type Map
What is .mime.types file?
✍: FYIcenter.com
.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, 434🔥, 0💬
Popular Posts:
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
JDK 8 tools.jar is the JAR file for JDK 8 tools. It contains Java classes to support different JDK t...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...