< prev index next >
src/java.base/share/classes/jdk/internal/jrtfs/JrtFileSystemProvider.java
Print this page
*** 144,153 ****
--- 144,158 ----
public void checkAccess(Path path, AccessMode... modes) throws IOException {
toJrtPath(path).checkAccess(modes);
}
@Override
+ public Path readSymbolicLink(Path link) throws IOException {
+ return toJrtPath(link).readSymbolicLink();
+ }
+
+ @Override
public void copy(Path src, Path target, CopyOption... options)
throws IOException
{
toJrtPath(src).copy(toJrtPath(target), options);
}
*** 167,177 ****
@Override
@SuppressWarnings("unchecked")
public <V extends FileAttributeView> V
getFileAttributeView(Path path, Class<V> type, LinkOption... options)
{
! return JrtFileAttributeView.get(toJrtPath(path), type);
}
@Override
public FileStore getFileStore(Path path) throws IOException {
return toJrtPath(path).getFileStore();
--- 172,182 ----
@Override
@SuppressWarnings("unchecked")
public <V extends FileAttributeView> V
getFileAttributeView(Path path, Class<V> type, LinkOption... options)
{
! return JrtFileAttributeView.get(toJrtPath(path), type, options);
}
@Override
public FileStore getFileStore(Path path) throws IOException {
return toJrtPath(path).getFileStore();
*** 248,258 ****
public <A extends BasicFileAttributes> A
readAttributes(Path path, Class<A> type, LinkOption... options)
throws IOException
{
if (type == BasicFileAttributes.class || type == JrtFileAttributes.class)
! return (A)toJrtPath(path).getAttributes();
return null;
}
@Override
public Map<String, Object>
--- 253,263 ----
public <A extends BasicFileAttributes> A
readAttributes(Path path, Class<A> type, LinkOption... options)
throws IOException
{
if (type == BasicFileAttributes.class || type == JrtFileAttributes.class)
! return (A)toJrtPath(path).getAttributes(options);
return null;
}
@Override
public Map<String, Object>
< prev index next >