Package org.uberfire.java.nio.file.spi
Interface FileSystemProvider
-
- All Known Subinterfaces:
SecuredFileSystemProvider
public interface FileSystemProviderBack port of JSR-203 from Java Platform, Standard Edition 7.- See Also:
- Original JavaDoc
-
-
Method Summary
-
-
-
Method Detail
-
forceAsDefault
void forceAsDefault()
-
isDefault
boolean isDefault()
-
getScheme
String getScheme()
-
newFileSystem
FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException
-
getFileSystem
FileSystem getFileSystem(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
-
getPath
Path getPath(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
-
newFileSystem
FileSystem newFileSystem(Path path, Map<String,?> env) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
-
newInputStream
InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, NoSuchFileException, IOException, SecurityException
-
newOutputStream
OutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
-
newFileChannel
FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
-
newAsynchronousFileChannel
AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
-
newByteChannel
SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
-
newDirectoryStream
DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws NotDirectoryException, IOException, SecurityException
-
createDirectory
void createDirectory(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
-
createSymbolicLink
void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
-
createLink
void createLink(Path link, Path existing) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
-
delete
void delete(Path path, DeleteOption... options) throws DirectoryNotEmptyException, NoSuchFileException, IOException, SecurityException
-
deleteIfExists
boolean deleteIfExists(Path path, DeleteOption... options) throws DirectoryNotEmptyException, IOException, SecurityException
-
readSymbolicLink
Path readSymbolicLink(Path link) throws UnsupportedOperationException, NotLinkException, IOException, SecurityException
-
copy
void copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
-
move
void move(Path source, Path target, CopyOption... options) throws DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
-
isSameFile
boolean isSameFile(Path path, Path path2) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
isHidden
boolean isHidden(Path path) throws IllegalArgumentException, IOException, SecurityException
-
getFileStore
FileStore getFileStore(Path path) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
checkAccess
void checkAccess(Path path, AccessMode... modes) throws UnsupportedOperationException, NoSuchFileException, AccessDeniedException, IOException, SecurityException
-
getFileAttributeView
<V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) throws NoSuchFileException
- Throws:
NoSuchFileException
-
readAttributes
<A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws NoSuchFileException, UnsupportedOperationException, IOException, SecurityException
-
readAttributes
Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException
-
setAttribute
void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
-
-