public final class FileTypeDetector extends Object
| Modifier and Type | Method and Description |
|---|---|
static FileType |
detectFileType(File file)
Examines the a file's first bytes and estimates the file's type.
|
static FileType |
detectFileType(org.sejda.io.SeekableSource source) |
public static FileType detectFileType(File file) throws IOException
file - to examine.IOException - if an IO error occurs.public static FileType detectFileType(org.sejda.io.SeekableSource source) throws IOException
IOExceptionCopyright © 2020 sejda. All rights reserved.