Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
any2txt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
any2txt
Commits
88c7b3ec
Commit
88c7b3ec
authored
Jul 3, 2023
by
Paweł Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
add catch
parent
c0ebd702
Branches
Branches containing commit
No related tags found
1 merge request
!1
Support xml
Pipeline
#11424
passed
Jul 3, 2023
Stage: build_develop
Changes
1
Pipelines
1
Show 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 {
...
@@ -116,6 +116,12 @@ public class Converter extends Worker {
}
catch
(
SAXException
ex
)
{
}
catch
(
SAXException
ex
)
{
Logger
.
getLogger
(
Converter
.
class
.
getName
()).
log
(
Level
.
WARNING
,
"Problems in xml processing "
+
ex
.
getMessage
(),
ex
.
getMessage
());
Logger
.
getLogger
(
Converter
.
class
.
getName
()).
log
(
Level
.
WARNING
,
"Problems in xml processing "
+
ex
.
getMessage
(),
ex
.
getMessage
());
tika
=
new
Tika
(
new
TextDetector
());
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%
Loading
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