From 0b9264880abf55a03eca6d912d4f778d6301800c Mon Sep 17 00:00:00 2001 From: Maxim Nesen Date: Tue, 5 Nov 2024 14:14:45 +0100 Subject: [PATCH] Wrapping all methods of the EntityInputStream Signed-off-by: Maxim Nesen --- .../message/internal/EntityInputStream.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/core-common/src/main/java/org/glassfish/jersey/message/internal/EntityInputStream.java b/core-common/src/main/java/org/glassfish/jersey/message/internal/EntityInputStream.java index 06678b16fe..a100f73987 100644 --- a/core-common/src/main/java/org/glassfish/jersey/message/internal/EntityInputStream.java +++ b/core-common/src/main/java/org/glassfish/jersey/message/internal/EntityInputStream.java @@ -18,6 +18,7 @@ import java.io.IOException; import java.io.InputStream; +import java.io.OutputStream; import java.io.PushbackInputStream; import javax.ws.rs.ProcessingException; @@ -79,6 +80,31 @@ public int read(byte[] b, int off, int len) throws IOException { return input.read(b, off, len); } + @Override + public byte[] readAllBytes() throws IOException { + return input.readAllBytes(); + } + + @Override + public byte[] readNBytes(int len) throws IOException { + return input.readNBytes(len); + } + + @Override + public int readNBytes(byte[] b, int off, int len) throws IOException { + return input.readNBytes(b, off, len); + } + + @Override + public void skipNBytes(long n) throws IOException { + input.skipNBytes(n); + } + + @Override + public long transferTo(OutputStream out) throws IOException { + return input.transferTo(out); + } + @Override public long skip(long n) throws IOException { return input.skip(n);