Possible Duplicate:
Interface/enum listing standard mime-type constants
Is there an enum (or something similar) which holds constants for the most common MIME types?
I’d like to deal with some constants rather than firing Strings here and there.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is not one in the JDK that I am aware of. But there is this class that you can probably start with.
Edit:
Now there is a better option I think. Using Guava’s MediaType is a class that is maintained.