Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
any2txt
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
any2txt
Commits
c9ad816b
There was an error fetching the commit references. Please try again later.
Commit
c9ad816b
authored
2 years ago
by
Paweł Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
initialize doc
parent
206587df
1 merge request
!1
Support xml
Pipeline
#10757
failed with stage
in 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
module/src/main/java/pl/clarin/any2txt/Converter.java
+2
-1
2 additions, 1 deletion
module/src/main/java/pl/clarin/any2txt/Converter.java
with
2 additions
and
1 deletion
module/src/main/java/pl/clarin/any2txt/Converter.java
+
2
−
1
View file @
c9ad816b
...
...
@@ -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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment