Possible Duplicate:
Getting A File’s Mime Type In Java
i am looking for some function / plugin that's doing what finfo\mime_content_type doing in php. an exemple : click here to see an image
but if you will download the image to your computer and open it like a .rar file (with win rar or something else), you will see an rar dictonary , with a file named "garfild" !
in PHP , finfo or mime_content_type would decide that's not an image (but other servises like GD functions , will find it like an image) , and i am searching some thing like this in JAVA. thank you very much :) sorry for my newbie english , i'm not from eslish-speaking country :)