Skip to content

Commit

Permalink
TIKA-4199: complete delegate class
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Feb 20, 2024
1 parent 57064de commit 8295f36
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tika-core/src/main/java/org/apache/tika/io/BoundedInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
* Very slight modification of Commons' BoundedInputStream
Expand Down Expand Up @@ -121,5 +122,30 @@ public void mark(int readLimit) {
public boolean hasHitBound() {
return pos >= max;
}

@Override
public byte[] readNBytes(int len) throws IOException {
return in.readNBytes(len);
}

@Override
public int readNBytes(byte[] b, int off, int len) throws IOException {
return in.readNBytes(b, off, len);
}

@Override
public int available() throws IOException {
return in.available();
}

@Override
public boolean markSupported() {
return in.markSupported();
}

@Override
public long transferTo(OutputStream out) throws IOException {
return in.transferTo(out);
}
}

0 comments on commit 8295f36

Please sign in to comment.