public A readAttributes()

in src/main/java/org/apache/sling/commons/jcr/file/internal/JcrFileSystemProvider.java [247:256]


    public <A extends BasicFileAttributes> A readAttributes(final Path path, final Class<A> type, final LinkOption... options) throws IOException {
        logger.info("reading attributes: {}, {}, {}", path, type, options);
        if (type == BasicFileAttributes.class) {
            final BasicFileAttributes basicFileAttributes = jcrFileSupportService.fromPath(path);
            logger.info("basic file attributes: {}", basicFileAttributes);
            return (A) basicFileAttributes;
        } else {
            throw new IOException("Unsupported file attributes type: " + type);
        }
    }