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

initialize doc

parent 206587df
1 merge request!1Support xml
Pipeline #10757 failed with stage
in 56 seconds
......@@ -75,6 +75,7 @@ public class Converter extends Worker {
Logger.getLogger(Converter.class.getName()).log(Level.INFO, "Input file: " + fileIn);
File file = new File(fileIn);
TikaInputStream inS;
Document doc;
// try {
// DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
......@@ -90,7 +91,7 @@ public class Converter extends Worker {
inS = TikaInputStream.get(file, metadata);
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(file);
doc = builder.parse(file);
Tika tika = new Tika();
Logger.getLogger(Converter.class.getName()).log(Level.INFO, "Detected file type: " + tika.detect(inS));
......
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