Skip to content

Commit

Permalink
#428 Add close method in NumberedSplitRandomAccessFile
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-lingala committed May 24, 2022
1 parent 27181c6 commit f4e1d69
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ public long length() throws IOException {
return randomAccessFile.length();
}

@Override
public void close() throws IOException {
if (randomAccessFile != null) {
randomAccessFile.close();
}
super.close();
}

public void seekInCurrentPart(long pos) throws IOException {
randomAccessFile.seek(pos);
}
Expand Down

0 comments on commit f4e1d69

Please sign in to comment.