Skip to content

Commit b207054

Browse files
author
ehennum
committed
flush output #1055
1 parent 0fa5d2e commit b207054

File tree

1 file changed

+2
-0
lines changed
  • marklogic-client-api/src/main/java/com/marklogic/client/impl

1 file changed

+2
-0
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/impl/Utilities.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ static public void write(InputStream in, OutputStream outStream) throws IOExcept
688688
while ((byteCount = in.read(byteArray)) != -1) {
689689
outStream.write(byteArray, 0, byteCount);
690690
}
691+
outStream.flush();
691692
} finally {
692693
in.close();
693694
}
@@ -707,6 +708,7 @@ static public void write(Reader in, Writer out) throws IOException {
707708
while ((charCount = in.read(charArray)) != -1) {
708709
out.write(charArray, 0, charCount);
709710
}
711+
out.flush();
710712
} finally {
711713
in.close();
712714
}

0 commit comments

Comments
 (0)