@@ -653,6 +653,7 @@ void extractResources(Path resourcesDirectory) throws IOException {
653
653
}
654
654
655
655
@ Override
656
+ @ Deprecated
656
657
public Path parsePath (URI uri ) {
657
658
if (uri .getScheme ().equals ("file" )) {
658
659
return Paths .get (uri );
@@ -662,11 +663,13 @@ public Path parsePath(URI uri) {
662
663
}
663
664
664
665
@ Override
666
+ @ Deprecated
665
667
public Path parsePath (String path ) {
666
668
return Paths .get (path );
667
669
}
668
670
669
671
@ Override
672
+ @ Deprecated
670
673
public void checkAccess (Path path , Set <? extends AccessMode > modes , LinkOption ... linkOptions ) throws IOException {
671
674
if (pathIsInVfs (path )) {
672
675
if (modes .contains (AccessMode .WRITE )) {
@@ -683,6 +686,7 @@ public void checkAccess(Path path, Set<? extends AccessMode> modes, LinkOption..
683
686
}
684
687
685
688
@ Override
689
+ @ Deprecated
686
690
public void createDirectory (Path dir , FileAttribute <?>... attrs ) throws IOException {
687
691
if (delegate == null || pathIsInVfs (dir )) {
688
692
throw new SecurityException ("read-only filesystem" );
@@ -692,6 +696,7 @@ public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOExcept
692
696
}
693
697
694
698
@ Override
699
+ @ Deprecated
695
700
public void delete (Path path ) throws IOException {
696
701
if (delegate == null || pathIsInVfs (path )) {
697
702
throw new SecurityException ("read-only filesystem" );
@@ -701,6 +706,7 @@ public void delete(Path path) throws IOException {
701
706
}
702
707
703
708
@ Override
709
+ @ Deprecated
704
710
public SeekableByteChannel newByteChannel (Path path , Set <? extends OpenOption > options , FileAttribute <?>... attrs ) throws IOException {
705
711
if (delegate != null && !pathIsInVfs (path )) {
706
712
return delegate .newByteChannel (path , options , attrs );
@@ -779,6 +785,7 @@ public void close() throws IOException {
779
785
}
780
786
781
787
@ Override
788
+ @ Deprecated
782
789
public DirectoryStream <Path > newDirectoryStream (Path dir , DirectoryStream .Filter <? super Path > filter ) throws IOException {
783
790
if (delegate != null && !pathIsInVfs (dir )) {
784
791
return delegate .newDirectoryStream (dir , filter );
@@ -804,6 +811,7 @@ public Iterator<Path> iterator() {
804
811
}
805
812
806
813
@ Override
814
+ @ Deprecated
807
815
public Path toAbsolutePath (Path path ) {
808
816
Path result ;
809
817
if (shouldExtract (path )) {
@@ -815,6 +823,7 @@ public Path toAbsolutePath(Path path) {
815
823
}
816
824
817
825
@ Override
826
+ @ Deprecated
818
827
public Path toRealPath (Path path , LinkOption ... linkOptions ) throws IOException {
819
828
Path result ;
820
829
if (shouldExtract (path )) {
@@ -826,6 +835,7 @@ public Path toRealPath(Path path, LinkOption... linkOptions) throws IOException
826
835
}
827
836
828
837
@ Override
838
+ @ Deprecated
829
839
public Map <String , Object > readAttributes (Path path , String attributes , LinkOption ... options ) throws IOException {
830
840
if (delegate != null && !pathIsInVfs (path )) {
831
841
return delegate .readAttributes (path , attributes , options );
0 commit comments