Skip to content

Commit 52f263d

Browse files
authored
add close method to LimitedSizeInputStream (#734)
1 parent dddd1f7 commit 52f263d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common/src/main/java/apoc/export/util/LimitedSizeInputStream.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ public int read(byte b[], int off, int len) throws IOException {
5858
return i;
5959
}
6060

61+
@Override
62+
public void close() throws IOException {
63+
stream.close();
64+
super.close();
65+
}
66+
6167
private void incrementCounter(int size) throws IOException {
6268
// in some test cases, e.g. UtilIT.redirectShouldWorkWhenProtocolNotChangesWithUrlLocation,
6369
// the StreamConnection.getLength() returns `-1` because of content length not known,

0 commit comments

Comments
 (0)