how to get content type of file in java