String contained the fully qualified path to the file.
Underlying FileSystem point of access.
IllegalArgumentException
in case the file is not found in the underlying file system.
Retrieves a given number of bytes.
Retrieves a given number of bytes.
One of three situations is possible:
1. There's enough data to be read, thus, the resulting array's length will be exactly numberOfBytes. 2. There's not enough data but at least some, thus, the resulting array's length will be the number of available bytes. 3. The end of the file was already reached, in which case the resulting array will be empty.
This class provides methods for streaming bytes from an Hadoop file.
It is stateful, which means that it stores the offset until which the file has been consumed.
Instances of this class are not reusable, i.e. once the file is fully read it can neither be reopened nor can other file be consumed.
IllegalArgumentException
in case the file is not found in the underlying file system.