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..4f73b15883 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,21 @@ 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 int readNBytes(byte[] b, int off, int len) throws IOException { + return input.readNBytes(b, off, len); + } + + @Override + public long transferTo(OutputStream out) throws IOException { + return input.transferTo(out); + } + @Override public long skip(long n) throws IOException { return input.skip(n);