NIFI-11924: Corrected HDFSResourceInputStream for Java 8

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
This commit is contained in:
Peter Turcsanyi 2023-08-22 19:10:06 +02:00
parent f2e95041a5
commit fb217406c7

View File

@ -48,31 +48,11 @@ final class HDFSResourceInputStream extends InputStream {
return inputStream.read(b, off, len);
}
@Override
public byte[] readAllBytes() throws IOException {
return inputStream.readAllBytes();
}
@Override
public byte[] readNBytes(final int len) throws IOException {
return inputStream.readNBytes(len);
}
@Override
public int readNBytes(final byte[] b, final int off, final int len) throws IOException {
return inputStream.readNBytes(b, off, len);
}
@Override
public long skip(final long n) throws IOException {
return inputStream.skip(n);
}
@Override
public void skipNBytes(final long n) throws IOException {
inputStream.skipNBytes(n);
}
@Override
public int available() throws IOException {
return inputStream.available();
@ -98,9 +78,4 @@ final class HDFSResourceInputStream extends InputStream {
public boolean markSupported() {
return inputStream.markSupported();
}
@Override
public long transferTo(final OutputStream out) throws IOException {
return inputStream.transferTo(out);
}
}