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

Save empty

parent ea8fefca
1 merge request!1Support xml
Pipeline #11272 passed with stage
in 1 minute and 22 seconds
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment