Skip to content

Commit

Permalink
Wrapping all methods of the EntityInputStream
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
  • Loading branch information
senivam committed Nov 5, 2024
1 parent 7903c97 commit 606b4b6
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 606b4b6

Please sign in to comment.