git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@169761 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ec82e41948
commit
0636a22a7d
|
@ -44,17 +44,15 @@ public class MultipleOutputStream {
|
||||||
while ((read =bis.read(buf))!=-1){
|
while ((read =bis.read(buf))!=-1){
|
||||||
for (int i=0; i< pipedInStreams.length; i++) {
|
for (int i=0; i< pipedInStreams.length; i++) {
|
||||||
if (!pipedInStreams[i].isClosed()) {
|
if (!pipedInStreams[i].isClosed()) {
|
||||||
logger.debug("writing into piped stream {} ",i);
|
|
||||||
pipedOutStreams[i].write(buf, 0, read);
|
pipedOutStreams[i].write(buf, 0, read);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
writeTot+= read;
|
writeTot+= read;
|
||||||
if (allOutStreamClosed()) {
|
if (allOutStreamClosed())
|
||||||
logger.debug("all streams created are closed");
|
|
||||||
break;
|
break;
|
||||||
} else logger.debug("NOT all streams created are closed");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i< pipedOutStreams.length; i++) {
|
for (int i=0; i< pipedOutStreams.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue