protected InputStream getInputStream(FileResource fileResource) {
        InputStream is = null;
        try {
            is = fileResource.openInputStream();
        } catch (IOException e) {
            LOG.warn("{}", getXMLifiedLogMsg(IO_IS, fileResource.getResourceId(), e));
            flushAndClose(is);
        }
        return is;
    }
@param fileResource
@return inputStream, can be null if there is an exception opening IS
tika-batch/src/main/java/org/apache/tika/batch/fs/AbstractFSConsumer.java