public class SimpleFileSystemProvider extends Object implements FileSystemProvider
Modifier and Type | Class and Description |
---|---|
static class |
SimpleFileSystemProvider.OSType |
Constructor and Description |
---|
SimpleFileSystemProvider() |
public void forceAsDefault()
forceAsDefault
in interface FileSystemProvider
public boolean isDefault()
isDefault
in interface FileSystemProvider
public String getScheme()
getScheme
in interface FileSystemProvider
public FileSystem getFileSystem(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
getFileSystem
in interface FileSystemProvider
IllegalArgumentException
FileSystemNotFoundException
SecurityException
public Path getPath(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
getPath
in interface FileSystemProvider
IllegalArgumentException
FileSystemNotFoundException
SecurityException
public FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException
newFileSystem
in interface FileSystemProvider
IllegalArgumentException
IOException
SecurityException
FileSystemAlreadyExistsException
public FileSystem newFileSystem(Path path, Map<String,?> env) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newFileSystem
in interface FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
newInputStream
in interface FileSystemProvider
IllegalArgumentException
NoSuchFileException
IOException
SecurityException
public OutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newOutputStream
in interface FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newFileChannel
in interface FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newAsynchronousFileChannel
in interface FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
newByteChannel
in interface FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public void createDirectory(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface FileSystemProvider
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws NotDirectoryException, IOException, SecurityException
newDirectoryStream
in interface FileSystemProvider
NotDirectoryException
IOException
SecurityException
public void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createSymbolicLink
in interface FileSystemProvider
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public void createLink(Path link, Path existing) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createLink
in interface FileSystemProvider
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public void delete(Path path, DeleteOption... options) throws NoSuchFileException, DirectoryNotEmptyException, IOException, SecurityException
delete
in interface FileSystemProvider
NoSuchFileException
DirectoryNotEmptyException
IOException
SecurityException
public boolean deleteIfExists(Path path, DeleteOption... options) throws DirectoryNotEmptyException, IOException, SecurityException
deleteIfExists
in interface FileSystemProvider
DirectoryNotEmptyException
IOException
SecurityException
public Path readSymbolicLink(Path link) throws UnsupportedOperationException, NotLinkException, IOException, SecurityException
readSymbolicLink
in interface FileSystemProvider
UnsupportedOperationException
NotLinkException
IOException
SecurityException
public boolean isSameFile(Path path, Path path2) throws IOException, SecurityException
isSameFile
in interface FileSystemProvider
IOException
SecurityException
public boolean isHidden(Path path) throws IllegalArgumentException, IOException, SecurityException
isHidden
in interface FileSystemProvider
IllegalArgumentException
IOException
SecurityException
public void checkAccess(Path path, AccessMode... modes) throws UnsupportedOperationException, NoSuchFileException, AccessDeniedException, IOException, SecurityException
checkAccess
in interface FileSystemProvider
UnsupportedOperationException
NoSuchFileException
AccessDeniedException
IOException
SecurityException
public FileStore getFileStore(Path path) throws IOException, SecurityException
getFileStore
in interface FileSystemProvider
IOException
SecurityException
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) throws NoSuchFileException
getFileAttributeView
in interface FileSystemProvider
NoSuchFileException
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws NoSuchFileException, UnsupportedOperationException, IOException, SecurityException
readAttributes
in interface FileSystemProvider
NoSuchFileException
UnsupportedOperationException
IOException
SecurityException
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException
readAttributes
in interface FileSystemProvider
UnsupportedOperationException
IllegalArgumentException
IOException
SecurityException
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
setAttribute
in interface FileSystemProvider
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
public void copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
copy
in interface FileSystemProvider
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
SecurityException
public void move(Path source, Path target, CopyOption... options) throws DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
move
in interface FileSystemProvider
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
SecurityException
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.