To get the mime type, we have defined FileNameMap interface, that is a simple interface and available into the java.net package. FileNameMap interface includes all the mechanism to map between a file name and mime type string in Java.
Go through the given example to find out, how to get mime type.
Syntax for getting mime type in Java
Output will be displayed as:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: October 15, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles