A class to easily get the type of a file