Skip to content

Commit

Permalink
TIKA-4326: replace deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Jan 14, 2025
1 parent 8a8f169 commit 978bdcc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public void rewind() throws IOException {
// If we have a buffer, then we'll read from it
if (byteBuffer != null) {
readingFromBuffer = true;
inputStream = new UnsynchronizedByteArrayInputStream(byteBuffer, 0, bufferHighWaterMark);
inputStream = UnsynchronizedByteArrayInputStream.builder().
setByteArray(byteBuffer).setOffset(0).setLength(bufferHighWaterMark).get();
} else {
// No buffer, which means we've switched to a file
inputStream = new BufferedInputStream(new FileInputStream(storeFile));
Expand Down

0 comments on commit 978bdcc

Please sign in to comment.