Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
f882b12c
Commit
f882b12c
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
proper conversion to input string added
parent
19d46794
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!630
WIP: Resolve "The privileges of a new user are not saved in some cases"
,
!512
Resolve "Export to SBGN does not export compartments and some reactions"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
converter-SBGNML/src/main/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlXmlConverter.java
+3
-2
3 additions, 2 deletions
.../mapviewer/converter/model/sbgnml/SbgnmlXmlConverter.java
with
3 additions
and
2 deletions
converter-SBGNML/src/main/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlXmlConverter.java
+
3
−
2
View file @
f882b12c
...
...
@@ -3,12 +3,14 @@
*/
package
lcsb.mapviewer.converter.model.sbgnml
;
import
java.io.ByteArrayInputStream
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.nio.charset.StandardCharsets
;
import
javax.xml.bind.JAXBException
;
...
...
@@ -16,7 +18,6 @@ import org.apache.commons.io.IOUtils;
import
org.apache.commons.lang3.StringEscapeUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.log4j.spi.LoggingEvent
;
import
org.apache.tools.ant.filters.StringInputStream
;
import
org.sbgn.SbgnUtil
;
import
org.sbgn.bindings.Sbgn
;
...
...
@@ -76,7 +77,7 @@ public class SbgnmlXmlConverter implements IConverter {
StringEscapeUtils
.
escapeXml
(
notes
.
toString
())
+
"\n</html:body></notes> "
;
xml
=
xml
.
substring
(
0
,
position
)
+
notesNode
+
xml
.
substring
(
position
,
xml
.
length
());
}
result
=
new
String
InputStream
(
xml
);
result
=
new
ByteArray
InputStream
(
xml
.
getBytes
(
StandardCharsets
.
UTF_8
)
);
}
return
result
;
}
catch
(
IOException
e
)
{
...
...
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