Class HDFSResourceInputStream
java.lang.Object
java.io.InputStream
org.apache.nifi.flow.resource.hadoop.HDFSResourceInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.fs.FileSystemprivate final org.apache.hadoop.fs.FSDataInputStream -
Constructor Summary
ConstructorsConstructorDescriptionHDFSResourceInputStream(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.FSDataInputStream inputStream) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidmark(int readlimit) booleanintread()intread(byte[] b) intread(byte[] b, int off, int len) byte[]intreadNBytes(byte[] b, int off, int len) byte[]readNBytes(int len) voidreset()longskip(long n) voidskipNBytes(long n) longtransferTo(OutputStream out) Methods inherited from class java.io.InputStream
nullInputStream
-
Field Details
-
fileSystem
private final org.apache.hadoop.fs.FileSystem fileSystem -
inputStream
private final org.apache.hadoop.fs.FSDataInputStream inputStream
-
-
Constructor Details
-
HDFSResourceInputStream
HDFSResourceInputStream(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.FSDataInputStream inputStream)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
skipNBytes
- Overrides:
skipNBytesin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-