/** * Return an InputStream for reading the contents of this Resource. * @return an InputStream object. * @throws IOException if an error occurs. */ @Override public InputStream getInputStream() throws IOException { return isReference() ? getCheckedRef().getInputStream() : Files.newInputStream(getNotNullFile().toPath()); }