@ApplicationScoped public class VFSServicesServerImpl extends Object implements VFSService
| Modifier | Constructor and Description |
|---|---|
protected |
VFSServicesServerImpl() |
|
VFSServicesServerImpl(IOService ioService) |
| Modifier and Type | Method and Description |
|---|---|
Path |
copy(Path source,
Path target) |
Path |
createDirectories(Path dir) |
Path |
createDirectories(Path dir,
Map<String,?> attrs) |
Path |
createDirectory(Path dir) |
Path |
createDirectory(Path dir,
Map<String,?> attrs) |
void |
delete(Path path) |
boolean |
deleteIfExists(Path path) |
Path |
get(String uri) |
boolean |
isDirectory(Path path) |
boolean |
isDirectory(String uri) |
boolean |
isRegularFile(Path path) |
boolean |
isRegularFile(String uri) |
Path |
move(Path source,
Path target) |
DirectoryStream<Path> |
newDirectoryStream(Path dir) |
DirectoryStream<Path> |
newDirectoryStream(Path dir,
DirectoryStream.Filter<Path> filter) |
String |
readAllString(Path path) |
Map<String,Object> |
readAttributes(Path path) |
void |
setAttributes(Path path,
Map<String,Object> attrs) |
Path |
write(Path path,
String content) |
Path |
write(Path path,
String content,
Map<String,?> attrs) |
protected VFSServicesServerImpl()
@Inject
public VFSServicesServerImpl(@Named(value="ioStrategy")
IOService ioService)
public Path get(String uri)
get in interface VFSServicepublic DirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, IOException
newDirectoryStream in interface VFSServiceIllegalArgumentExceptionNotDirectoryExceptionIOExceptionpublic DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, IOException
newDirectoryStream in interface VFSServiceIllegalArgumentExceptionNotDirectoryExceptionIOExceptionpublic Path createDirectory(Path dir) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory in interface VFSServiceIllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Path createDirectories(Path dir) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Path createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory in interface VFSServiceIllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Path createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Map<String,Object> readAttributes(Path path) throws UnsupportedOperationException, IllegalArgumentException, IOException
readAttributes in interface VFSServiceUnsupportedOperationExceptionIllegalArgumentExceptionIOExceptionpublic void setAttributes(Path path, Map<String,Object> attrs) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException
setAttributes in interface VFSServiceIllegalArgumentExceptionFileSystemAlreadyExistsExceptionProviderNotFoundExceptionpublic void delete(Path path) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException
delete in interface VFSServiceIllegalArgumentExceptionNoSuchFileExceptionDirectoryNotEmptyExceptionIOExceptionpublic boolean deleteIfExists(Path path) throws IllegalArgumentException, DirectoryNotEmptyException, IOException
deleteIfExists in interface VFSServiceIllegalArgumentExceptionDirectoryNotEmptyExceptionIOExceptionpublic Path copy(Path source, Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException
copy in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionIOExceptionpublic Path move(Path source, Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException
move in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionAtomicMoveNotSupportedExceptionIOExceptionpublic String readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, IOException
readAllString in interface VFSServiceIllegalArgumentExceptionNoSuchFileExceptionIOExceptionpublic Path write(Path path, String content) throws IllegalArgumentException, IOException, UnsupportedOperationException
write in interface VFSServiceIllegalArgumentExceptionIOExceptionUnsupportedOperationExceptionpublic Path write(Path path, String content, Map<String,?> attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
write in interface VFSServiceIllegalArgumentExceptionIOExceptionUnsupportedOperationExceptionpublic boolean isRegularFile(String uri)
isRegularFile in interface VFSServicepublic boolean isRegularFile(Path path)
isRegularFile in interface VFSServicepublic boolean isDirectory(String uri)
isDirectory in interface VFSServicepublic boolean isDirectory(Path path)
isDirectory in interface VFSServiceCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.