public class Sniffer extends Object
The Sniffer is used to determine the Media-Type of a URL based on its content if possible, or the filename in the URL if not
sniffGiven a file at the specified path, sniff the file-type
path- the path
- the guessed MediaType or null if it's not recognised
sniffGiven a mark-capable InputStream, attempt to guess the MediaType. The stream is reset to its initial position at the end of this method.