You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2024/02/20 16:10:28 UTC

(tika) branch branch_2x updated: TIKA-4199: complete delegate class

This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_2x by this push:
     new 8295f3645 TIKA-4199: complete delegate class
8295f3645 is described below

commit 8295f3645fe99fb8db3a3439f44820273dfc3c24
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Tue Feb 20 17:10:05 2024 +0100

    TIKA-4199: complete delegate class
---
 .../org/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 4542f5cfe..404d6cc76 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 @@ package org.apache.tika.io;
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.OutputStream;
 
 /**
  * Very slight modification of Commons' BoundedInputStream
@@ -121,5 +122,30 @@ public class BoundedInputStream extends InputStream {
     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);
+    }
 }