From 0934aea6c34abed1a50c51e16d7937aaccdc50e9 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Tue, 20 Feb 2024 17:15:54 +0100 Subject: [PATCH] TIKA-4199: remove methods missing in supertype --- .../apache/tika/io/BoundedInputStream.java | 14 ------------- .../apache/tika/parser/pkg/PackageParser.java | 20 ------------------- 2 files changed, 34 deletions(-) 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 404d6cc765..0ca9a8083e 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 @@ -123,16 +123,6 @@ 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(); @@ -143,9 +133,5 @@ public boolean markSupported() { return in.markSupported(); } - @Override - public long transferTo(OutputStream out) throws IOException { - return in.transferTo(out); - } } diff --git a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pkg-module/src/main/java/org/apache/tika/parser/pkg/PackageParser.java b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pkg-module/src/main/java/org/apache/tika/parser/pkg/PackageParser.java index 623ed88759..f25df821b5 100644 --- a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pkg-module/src/main/java/org/apache/tika/parser/pkg/PackageParser.java +++ b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pkg-module/src/main/java/org/apache/tika/parser/pkg/PackageParser.java @@ -520,21 +520,6 @@ public void close() throws IOException { file.close(); } - @Override - public byte[] readAllBytes() throws IOException { - return in.readAllBytes(); - } - - @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 long skip(long n) throws IOException { return in.skip(n); @@ -554,11 +539,6 @@ public synchronized void mark(int readlimit) { public boolean markSupported() { return in.markSupported(); } - - @Override - public long transferTo(OutputStream out) throws IOException { - return in.transferTo(out); - } }