public final class FileTypeDetectorSupport extends Object
FileTypeDetectors used by
Files.probeContentType(Path).| Modifier and Type | Class and Description |
|---|---|
static class |
FileTypeDetectorSupport.AlwaysNullFileTypeDetector |
static class |
FileTypeDetectorSupport.Options |
| Constructor and Description |
|---|
FileTypeDetectorSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFirst(FileTypeDetector detector)
Prepends the provided
FileTypeDetector at the beginning of the list of detectors. |
static void |
addLast(FileTypeDetector detector)
Appends the provided
FileTypeDetector at the end of the list of detectors. |
static void |
setDefault(FileTypeDetector detector)
Overwrites the default
FileTypeDetector, i.e., the detector that is used when no
detector of the list matches. |
public static void addFirst(FileTypeDetector detector)
FileTypeDetector at the beginning of the list of detectors.public static void addLast(FileTypeDetector detector)
FileTypeDetector at the end of the list of detectors.public static void setDefault(FileTypeDetector detector)
FileTypeDetector, i.e., the detector that is used when no
detector of the list matches.