Mimak.SymlinkOptions| Constructor and Description |
|---|
DefaultMimak(MimeDetectorAdapter mimeTypeEngine,
Mimak.SymlinkOptions symlinkOptions) |
| Modifier and Type | Method and Description |
|---|---|
String |
detect(File file)
Returns the MIME type for the given file.
|
String |
detect(Path file)
Returns the MIME type for the given file.
|
String |
detect(String file)
Returns the MIME type for the given file.
|
public DefaultMimak(MimeDetectorAdapter mimeTypeEngine, Mimak.SymlinkOptions symlinkOptions)
public String detect(Path file) throws MimakException
Mimakdetect in interface Mimakfile - A non-null fileMimakException - If an error occurs and cannot detect the MIME type for the filepublic String detect(File file) throws MimakException
Mimakdetect in interface Mimakfile - A non-null fileMimakException - If an error occurs and cannot detect the MIME type for the filepublic String detect(String file) throws MimakException
Mimakdetect in interface Mimakfile - A non-null fileMimakException - If an error occurs and cannot detect the MIME type for the fileCopyright © 2017. All rights reserved.