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
88c7b3ec
Commit
88c7b3ec
authored
2 years ago
by
Paweł Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
add catch
parent
c0ebd702
Branches
Branches containing commit
1 merge request
!1
Support xml
Pipeline
#11424
passed with stage
Stage:
in 1 minute and 19 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
+6
-0
6 additions, 0 deletions
module/src/main/java/pl/clarin/any2txt/Converter.java
with
6 additions
and
0 deletions
module/src/main/java/pl/clarin/any2txt/Converter.java
+
6
−
0
View file @
88c7b3ec
...
...
@@ -116,6 +116,12 @@ public class Converter extends Worker {
}
catch
(
SAXException
ex
)
{
Logger
.
getLogger
(
Converter
.
class
.
getName
()).
log
(
Level
.
WARNING
,
"Problems in xml processing "
+
ex
.
getMessage
(),
ex
.
getMessage
());
tika
=
new
Tika
(
new
TextDetector
());
}
catch
(
ParserConfigurationException
ex
)
{
Logger
.
getLogger
(
Converter
.
class
.
getName
()).
log
(
Level
.
WARNING
,
"Problems in xml processing "
+
ex
.
getMessage
(),
ex
.
getMessage
());
tika
=
new
Tika
(
new
TextDetector
());
}
catch
(
IOException
ex
)
{
Logger
.
getLogger
(
Converter
.
class
.
getName
()).
log
(
Level
.
WARNING
,
"Problems in xml processing "
+
ex
.
getMessage
(),
ex
.
getMessage
());
tika
=
new
Tika
(
new
TextDetector
());
}
}
...
...
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