FileTypeDetector
Class FileTypeDetector
- java.lang.Object
-
- java.nio.file.spi.FileTypeDetector
public abstract class FileTypeDetector extends Object
A file type detector for probing a file to guess its file type.
A file type detector is a concrete implementation of this class, has a zero-argument constructor, and implements the abstract methods specified below.
The means by which a file type detector determines the file type is highly implementation specific. A simple implementation might examine the file extension (a convention used in some platforms) and map it to a file type. In other cases, the file type may be stored as a file attribute or the bytes in a file may be examined to guess i