From 8295f3645fe99fb8db3a3439f44820273dfc3c24 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Tue, 20 Feb 2024 17:10:05 +0100 Subject: [PATCH] TIKA-4199: complete delegate class --- .../apache/tika/io/BoundedInputStream.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tika-core/src/main/java/org/apache/tika/io/BoundedInputStream.java b/tika-core/src/main/java/org/apache/tika/io/BoundedInputStream.java index 4542f5cfe6..404d6cc765 100644 --- a/tika-core/src/main/java/org/apache/tika/io/BoundedInputStream.java +++ b/tika-core/src/main/java/org/apache/tika/io/BoundedInputStream.java @@ -18,6 +18,7 @@ import java.io.IOException; import java.io.InputStream; +import java.io.OutputStream; /** * Very slight modification of Commons' BoundedInputStream @@ -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); + } }