mirror of
https://github.com/apache/nifi.git
synced 2025-02-07 18:48:51 +00:00
NIFI-11924: Corrected HDFSResourceInputStream for Java 8
Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
This commit is contained in:
parent
f2e95041a5
commit
fb217406c7
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user