@Override
    public InputStream getInputStream() throws IOException {
        try {
            return Files.newInputStream(this.filePath);
        } catch (NoSuchFileException ex) {
            throw new FileNotFoundException(ex.getMessage());
        }
    }
This implementation opens a NIO file stream for the underlying file.

see java.io.FileInputStream
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/FileSystemResource.java