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
e17cf7f9
Commit
e17cf7f9
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
debug added
parent
3001676b
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"
,
!386
Resolve "Continous integration tests"
Pipeline
#6330
canceled
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
annotation/src/main/java/lcsb/mapviewer/annotation/services/MiRNAParser.java
+2
-13
2 additions, 13 deletions
.../java/lcsb/mapviewer/annotation/services/MiRNAParser.java
with
2 additions
and
13 deletions
annotation/src/main/java/lcsb/mapviewer/annotation/services/MiRNAParser.java
+
2
−
13
View file @
e17cf7f9
...
...
@@ -249,44 +249,33 @@ public class MiRNAParser extends CachableInterface implements IExternalService {
* thrown when there is a problem with accessing mirna data file
*/
private
InputStream
getSourceInputStream
()
throws
IOException
{
new
Exception
().
printStackTrace
();
if
(
this
.
sourceInputStream
==
null
)
{
this
.
sourceInputStream
=
new
ByteArrayOutputStream
();
if
(!
bigFileCache
.
isCached
(
URL_SOURCE_DATABASE
))
{
logger
.
debug
(
"downloading xls file with mirna"
);
try
{
bigFileCache
.
downloadFile
(
URL_SOURCE_DATABASE
,
false
,
new
IProgressUpdater
()
{
@Override
public
void
setProgress
(
double
progress
)
{
logger
.
debug
(
"Progress: "
+
progress
);
}
});
}
catch
(
URISyntaxException
e
)
{
throw
new
IOException
(
"Problem with downloading file: "
+
URL_SOURCE_DATABASE
,
e
);
}
logger
.
debug
(
"File downloaded"
);
}
else
{
logger
.
debug
(
"xls file with mirna in cache"
);
}
logger
.
debug
(
"breakpoint 1"
);
String
filename
=
bigFileCache
.
getAbsolutePathForFile
(
URL_SOURCE_DATABASE
);
logger
.
debug
(
"breakpoint 2"
);
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
logger
.
debug
(
"breakpoint 3"
);
int
len
;
logger
.
debug
(
"breakpoint 4"
);
InputStream
stream
=
new
FileInputStream
(
new
File
(
filename
));
logger
.
debug
(
"breakpoint 5 "
+
new
File
(
filename
).
length
());
try
{
while
((
len
=
stream
.
read
(
buffer
))
>
-
1
)
{
logger
.
debug
(
"breakpoint 6 "
+
len
);
this
.
sourceInputStream
.
write
(
buffer
,
0
,
len
);
}
}
finally
{
stream
.
close
();
}
logger
.
debug
(
"breakpoint 7"
);
this
.
sourceInputStream
.
flush
();
logger
.
debug
(
"breakpoint 8"
);
}
return
new
ByteArrayInputStream
(
sourceInputStream
.
toByteArray
());
}
...
...
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