mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
Merge pull request #5519 from rcordovano/public-api-adjustments
Public API adjustments
This commit is contained in:
commit
cfd42dca03
@ -94,15 +94,6 @@ public final class TextFileExtractor implements TextExtractor {
|
|||||||
return file.getMIMEType().equals("text/plain");
|
return file.getMIMEType().equals("text/plain");
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TextFileExtractorException extends Exception {
|
|
||||||
public TextFileExtractorException(String msg, Throwable ex) {
|
|
||||||
super(msg, ex);
|
|
||||||
}
|
|
||||||
public TextFileExtractorException(String msg) {
|
|
||||||
super(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Charset getEncoding(Content content) {
|
public static Charset getEncoding(Content content) {
|
||||||
try (InputStream stream = new BufferedInputStream(new ReadContentInputStream(content))) {
|
try (InputStream stream = new BufferedInputStream(new ReadContentInputStream(content))) {
|
||||||
// Tika first
|
// Tika first
|
||||||
|
Loading…
x
Reference in New Issue
Block a user