public class K8SFileSystemProvider extends SimpleFileSystemProvider implements CloudClientFactory
SimpleFileSystemProvider.OSType
fileSystem
Constructor and Description |
---|
K8SFileSystemProvider() |
createLink, createSymbolicLink, forceAsDefault, getDefaultFileSystem, getFileAttributeView, getFileSystem, getPath, isDefault, isSameFile, newAsynchronousFileChannel, newDirectoryStream, newFileSystem, newFileSystem, readAttributes, readSymbolicLink, setAttribute, split, toGeneralPathImpl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createKubernetesClient, createOpenShiftClient, executeCloudFunction, setupConfig
public String getScheme()
getScheme
in interface FileSystemProvider
getScheme
in class SimpleFileSystemProvider
public InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
newInputStream
in interface FileSystemProvider
newInputStream
in class SimpleFileSystemProvider
IllegalArgumentException
NoSuchFileException
IOException
SecurityException
public OutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newOutputStream
in interface FileSystemProvider
newOutputStream
in class SimpleFileSystemProvider
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newFileChannel
in interface FileSystemProvider
newFileChannel
in class SimpleFileSystemProvider
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
newByteChannel
in class SimpleFileSystemProvider
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public void createDirectory(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface FileSystemProvider
createDirectory
in class SimpleFileSystemProvider
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
protected Path[] getDirectoryContent(Path dir)
getDirectoryContent
in class SimpleFileSystemProvider
public void delete(Path path, DeleteOption... options) throws NoSuchFileException, DirectoryNotEmptyException, IOException, SecurityException
delete
in interface FileSystemProvider
delete
in class SimpleFileSystemProvider
NoSuchFileException
DirectoryNotEmptyException
IOException
SecurityException
public boolean deleteIfExists(Path path, DeleteOption... options) throws DirectoryNotEmptyException, IOException, SecurityException
deleteIfExists
in interface FileSystemProvider
deleteIfExists
in class SimpleFileSystemProvider
DirectoryNotEmptyException
IOException
SecurityException
public boolean isHidden(Path path) throws IllegalArgumentException, IOException, SecurityException
isHidden
in interface FileSystemProvider
isHidden
in class SimpleFileSystemProvider
IllegalArgumentException
IOException
SecurityException
public void checkAccess(Path path, AccessMode... modes) throws UnsupportedOperationException, NoSuchFileException, AccessDeniedException, IOException, SecurityException
checkAccess
in interface FileSystemProvider
checkAccess
in class SimpleFileSystemProvider
UnsupportedOperationException
NoSuchFileException
AccessDeniedException
IOException
SecurityException
public FileStore getFileStore(Path path) throws IOException, SecurityException
getFileStore
in interface FileSystemProvider
getFileStore
in class SimpleFileSystemProvider
IOException
SecurityException
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws NoSuchFileException, UnsupportedOperationException, IOException, SecurityException
readAttributes
in interface FileSystemProvider
readAttributes
in class SimpleFileSystemProvider
NoSuchFileException
UnsupportedOperationException
IOException
SecurityException
protected <V extends FileAttributeView> V createFileAttributeView(GeneralPathImpl path, Class<V> type)
createFileAttributeView
in class SimpleFileSystemProvider
public void copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
copy
in interface FileSystemProvider
copy
in class SimpleFileSystemProvider
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
SecurityException
public void move(Path source, Path target, CopyOption... options) throws DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
move
in interface FileSystemProvider
move
in class SimpleFileSystemProvider
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
SecurityException
protected void checkFileNotExistThenThrow(Path path, boolean isLink)
checkFileNotExistThenThrow
in class SimpleFileSystemProvider
protected void checkFileExistsThenThrow(Path path)
checkFileExistsThenThrow
in class SimpleFileSystemProvider
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.