File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
test/jdk/java/nio/file/spi Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2828import java .nio .file .attribute .FileAttributeView ;
2929import java .nio .file .attribute .UserPrincipalLookupService ;
3030import java .nio .file .spi .FileSystemProvider ;
31+ import java .nio .channels .FileChannel ;
3132import java .nio .channels .SeekableByteChannel ;
3233import java .net .URI ;
3334import java .io .IOException ;
@@ -173,6 +174,16 @@ public SeekableByteChannel newByteChannel(Path file,
173174 return defaultProvider .newByteChannel (delegate , options , attrs );
174175 }
175176
177+ @ Override
178+ public FileChannel newFileChannel (Path file ,
179+ Set <? extends OpenOption > options ,
180+ FileAttribute <?>... attrs )
181+ throws IOException
182+ {
183+ Path delegate = theFileSystem .unwrap (file );
184+ return defaultProvider .newFileChannel (delegate , options , attrs );
185+ }
186+
176187 @ Override
177188 public boolean isHidden (Path file ) throws IOException {
178189 throw new ReadOnlyFileSystemException ();
You can’t perform that action at this time.
0 commit comments