src/main/java/com/mapr/fuse/StreamFuse.java
private int readPartOfFile(Path fullPath, byte[] batchOfBytes, int offset, int size) {
        int numOfReadBytes;
        try (FileInputStream fis = new FileInputStream(fullPath.toFile())) {
            //noinspection ResultOfMethodCallIgnored
            fis.skip(offset);
            numOfReadBytes = fis.read(batchOfBytes, 0, size);
        } catch (IOException e) {
            log.error("Problems with reading file");
            throw new RuntimeException(e);
        }
        return numOfReadBytes;
    }
/**
     * @param fullPath     path to the file
     * @param batchOfBytes the buffer into which the data is read.
     * @param offset       the start offset in the destination array
     * @param size         the maximum number of bytes read.
     * @return the total number of bytes read into the buffer
     */
@param fullPath     path to the file
@param batchOfBytes the buffer into which the data is read.
@param offset       the start offset in the destination array
@param size         the maximum number of bytes read.
@return the total number of bytes read into the buffer
@param fullPath path to the file @param batchOfBytes the buffer into which the data is read . @param offset the start offset in the destination array @param size the maximum number of bytes read . @return the total number of bytes read into the buffer
private int readPartOfFile(Path fullPath, byte[] batchOfBytes, int offset, int size) {
        int numOfReadBytes;
        try (FileInputStream fis = new FileInputStream(fullPath.toFile())) {
            fis.skip(offset);
            numOfReadBytes = fis.read(batchOfBytes, 0, size);
        } catch (IOException e) {
            log.error("Problems with reading file");
            throw new RuntimeException(e);
        }
        return numOfReadBytes;
    }
private int readPartOfFile ( Path fullPath , byte [ ] batchOfBytes , int offset , int size ) { int numOfReadBytes ; try ( FileInputStream fis = new FileInputStream ( fullPath . toFile ( ) ) ) { fis . skip ( offset ) ; numOfReadBytes = fis . read ( batchOfBytes , 0 , size ) ; } catch ( IOException e ) { log . error ( "Problems with reading file" ) ; throw new RuntimeException ( e ) ; } return numOfReadBytes ; }
@param fullPath     path to the file
 @param batchOfBytes the buffer into which the data is read.
@param fullPath path to the file @param batchOfBytes the buffer into which the data is read .
//noinspection ResultOfMethodCallIgnored