@@ -1187,52 +1187,52 @@ public Path parsePath(final String path) {
1187
1187
1188
1188
@ Override
1189
1189
public void checkAccess (Path path , Set <? extends AccessMode > modes , LinkOption ... linkOptions ) {
1190
- throw securityException ( "VFS.checkAccess" , String .format ("filesystem without host IO: '%s'" , path ));
1190
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , path ));
1191
1191
}
1192
1192
1193
1193
@ Override
1194
1194
public void createDirectory (Path dir , FileAttribute <?>... attrs ) {
1195
- throw securityException ( "VFS.createDirectory" , String .format ("filesystem without host IO: '%s'" , dir ));
1195
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , dir ));
1196
1196
}
1197
1197
1198
1198
@ Override
1199
1199
public void delete (Path path ) {
1200
- throw securityException ( "VFS.delete" , String .format ("filesystem without host IO: '%s'" , path ));
1200
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , path ));
1201
1201
}
1202
1202
1203
1203
@ Override
1204
1204
public void copy (Path source , Path target , CopyOption ... options ) {
1205
- throw securityException ( "VFS.copy" , String .format ("filesystem without host IO: '%s', '%s'" , source , target ));
1205
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s', '%s'" , source , target ));
1206
1206
}
1207
1207
1208
1208
@ Override
1209
1209
public void move (Path source , Path target , CopyOption ... options ) {
1210
- throw securityException ( "VFS.move" , String .format ("filesystem without host IO: '%s', '%s'" , source , target ));
1210
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s', '%s'" , source , target ));
1211
1211
}
1212
1212
1213
1213
@ Override
1214
1214
public SeekableByteChannel newByteChannel (Path inPath , Set <? extends OpenOption > options , FileAttribute <?>... attrs ) throws IOException {
1215
- throw securityException ( "VFS.newByteChannel" , String .format ("Filesystem without host IO: '%s'" , inPath ));
1215
+ throw new SecurityException ( String .format ("Filesystem without host IO: '%s'" , inPath ));
1216
1216
}
1217
1217
1218
1218
@ Override
1219
1219
public DirectoryStream <Path > newDirectoryStream (Path dir , DirectoryStream .Filter <? super Path > filter ) throws IOException {
1220
- throw securityException ( "VFS.newDirectoryStream" , String .format ("filesystem without host IO: '%s'" , dir ));
1220
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , dir ));
1221
1221
}
1222
1222
1223
1223
@ Override
1224
1224
public Map <String , Object > readAttributes (Path path , String attributes , LinkOption ... options ) {
1225
- throw securityException ( "VFS.readAttributes" , String .format ("filesystem without host IO: '%s'" , path ));
1225
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , path ));
1226
1226
}
1227
1227
1228
1228
@ Override
1229
1229
public void setAttribute (Path path , String attribute , Object value , LinkOption ... options ) {
1230
- throw securityException ( "VFS.setAttribute" , String .format ("filesystem without host IO: '%s'" , path ));
1230
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , path ));
1231
1231
}
1232
1232
1233
1233
@ Override
1234
1234
public Path toAbsolutePath (Path path ) {
1235
- throw securityException ( "VFS.toAbsolutePath" , String .format ("filesystem without host IO: '%s'" , path ));
1235
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , path ));
1236
1236
}
1237
1237
1238
1238
@ Override
@@ -1241,32 +1241,32 @@ public void setCurrentWorkingDirectory(Path currentWorkingDirectory) {
1241
1241
1242
1242
@ Override
1243
1243
public Path toRealPath (Path path , LinkOption ... linkOptions ) {
1244
- throw securityException ( "VFS.toRealPath" , String .format ("filesystem without host IO: '%s'" , path ));
1244
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , path ));
1245
1245
}
1246
1246
1247
1247
@ Override
1248
1248
public Path getTempDirectory () {
1249
- throw securityException ( "VFS.getTempDirectory" , String .format ("filesystem without host IO" ));
1249
+ throw new SecurityException ( String .format ("filesystem without host IO" ));
1250
1250
}
1251
1251
1252
1252
@ Override
1253
1253
public void createLink (Path link , Path existing ) {
1254
- throw securityException ( "VFS.createLink" , String .format ("filesystem without host IO: '%s'" , link ));
1254
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , link ));
1255
1255
}
1256
1256
1257
1257
@ Override
1258
1258
public void createSymbolicLink (Path link , Path target , FileAttribute <?>... attrs ) {
1259
- throw securityException ( "VFS.createSymbolicLink" , String .format ("filesystem without host IO: '%s', '%s'" , link , target ));
1259
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s', '%s'" , link , target ));
1260
1260
}
1261
1261
1262
1262
@ Override
1263
1263
public Path readSymbolicLink (Path link ) {
1264
- throw securityException ( "VFS.readSymbolicLink" , String .format ("filesystem without host IO: '%s'" , link ));
1264
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s'" , link ));
1265
1265
}
1266
1266
1267
1267
@ Override
1268
1268
public boolean isSameFile (Path path1 , Path path2 , LinkOption ... options ) {
1269
- throw securityException ( "VFS.isSameFile" , String .format ("filesystem without host IO: '%s', '%s'" , path1 , path2 ));
1269
+ throw new SecurityException ( String .format ("filesystem without host IO: '%s', '%s'" , path1 , path2 ));
1270
1270
}
1271
1271
}
1272
1272
0 commit comments