@ApplicationScoped public class VFSServicesServerImpl extends Object implements VFSService
| Constructor and Description |
|---|
VFSServicesServerImpl() |
| 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) |
public Path get(String uri)
get in interface VFSServicepublic DirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, org.uberfire.java.nio.IOException
newDirectoryStream in interface VFSServiceIllegalArgumentExceptionNotDirectoryExceptionorg.uberfire.java.nio.IOExceptionpublic DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, org.uberfire.java.nio.IOException
newDirectoryStream in interface VFSServiceIllegalArgumentExceptionNotDirectoryExceptionorg.uberfire.java.nio.IOExceptionpublic Path createDirectory(Path dir) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
createDirectory in interface VFSServiceIllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic Path createDirectories(Path dir) throws UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
createDirectories in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic Path createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
createDirectory in interface VFSServiceIllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic Path createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
createDirectories in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic Map<String,Object> readAttributes(Path path) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException
readAttributes in interface VFSServiceUnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionpublic void setAttributes(Path path, Map<String,Object> attrs) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException
setAttributes in interface VFSServiceIllegalArgumentExceptionFileSystemAlreadyExistsExceptionProviderNotFoundExceptionpublic void delete(Path path) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, org.uberfire.java.nio.IOException
delete in interface VFSServiceIllegalArgumentExceptionNoSuchFileExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionpublic boolean deleteIfExists(Path path) throws IllegalArgumentException, DirectoryNotEmptyException, org.uberfire.java.nio.IOException
deleteIfExists in interface VFSServiceIllegalArgumentExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionpublic Path copy(Path source, Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, org.uberfire.java.nio.IOException
copy in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionpublic Path move(Path source, Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, org.uberfire.java.nio.IOException
move in interface VFSServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionAtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionpublic String readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, org.uberfire.java.nio.IOException
readAllString in interface VFSServiceIllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionpublic Path write(Path path, String content) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
write in interface VFSServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic Path write(Path path, String content, Map<String,?> attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
write in interface VFSServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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–2017 JBoss by Red Hat. All rights reserved.