I was wondering if there is a simple way in Java to know which category of file a file can be (video, audio, document, simple text, ...).
I have tried to know by looking the extension, but I think there is an easier way, is it ??
I'm looking forward for your comment.