Skip to content
Snippets Groups Projects
Commit 5beb77ea authored by Paweł Walkowiak's avatar Paweł Walkowiak
Browse files

Save empty

parent ea8fefca
No related branches found
No related tags found
1 merge request!1Support xml
Pipeline #11272 passed
......@@ -75,8 +75,7 @@ public class Converter extends Worker {
Tika tika = new Tika();
Logger.getLogger(Converter.class.getName()).log(Level.INFO, "Detected file type: " + tika.detect(inS));
if("application/x-msdownload".equals(tika.detect(inS)) || "text/plain".equals(tika.detect(inS))){
Logger.getLogger(Converter.class.getName()).log(Level.INFO, "Using TextDetector for type: " + tika.detect(inS));
if("application/x-msdownload".equals(tika.detect(inS))){
tika = new Tika(new TextDetector());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment