From 606b4b661894cd7d9e024bc51aeb14fc2cd40797 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 | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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..b9ccfcfb06 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 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -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);