mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
commenting
This commit is contained in:
parent
8c1b7feb94
commit
8293b38d1a
@ -183,6 +183,16 @@ final class TikaTextExtractor implements TextExtractor {
|
|||||||
this.fileTypeDetector = detector;
|
this.fileTypeDetector = detector;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtains the mime type of the file using a FileTypeDetector with the
|
||||||
|
* file's mime type as fallback if the FileTypeDetector is not instantiated.
|
||||||
|
* If no mime type present, MimeTypes.OCTET_STREAM is returned.
|
||||||
|
*
|
||||||
|
* @param file The abstract file instance.
|
||||||
|
*
|
||||||
|
* @return The mime type or MimeTypes.OCTET_STREAM if the mime type cannot
|
||||||
|
* be determined.
|
||||||
|
*/
|
||||||
private String getMimeType(AbstractFile file) {
|
private String getMimeType(AbstractFile file) {
|
||||||
String mimeType = MimeTypes.OCTET_STREAM;
|
String mimeType = MimeTypes.OCTET_STREAM;
|
||||||
if (fileTypeDetector != null) {
|
if (fileTypeDetector != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user