@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 VFSService
public DirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, IOException
newDirectoryStream
in interface VFSService
IllegalArgumentException
NotDirectoryException
IOException
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, IOException
newDirectoryStream
in interface VFSService
IllegalArgumentException
NotDirectoryException
IOException
public Path createDirectory(Path dir) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface VFSService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectories(Path dir) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories
in interface VFSService
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface VFSService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories
in interface VFSService
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Map<String,Object> readAttributes(Path path) throws UnsupportedOperationException, IllegalArgumentException, IOException
readAttributes
in interface VFSService
UnsupportedOperationException
IllegalArgumentException
IOException
public void setAttributes(Path path, Map<String,Object> attrs) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException
setAttributes
in interface VFSService
IllegalArgumentException
FileSystemAlreadyExistsException
ProviderNotFoundException
public void delete(Path path) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException
delete
in interface VFSService
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
IOException
public boolean deleteIfExists(Path path) throws IllegalArgumentException, DirectoryNotEmptyException, IOException
deleteIfExists
in interface VFSService
IllegalArgumentException
DirectoryNotEmptyException
IOException
public Path copy(Path source, Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException
copy
in interface VFSService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
public Path move(Path source, Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException
move
in interface VFSService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
public String readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, IOException
readAllString
in interface VFSService
IllegalArgumentException
NoSuchFileException
IOException
public Path write(Path path, String content) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface VFSService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, String content, Map<String,?> attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface VFSService
IllegalArgumentException
IOException
UnsupportedOperationException
public boolean isRegularFile(String uri)
isRegularFile
in interface VFSService
public boolean isRegularFile(Path path)
isRegularFile
in interface VFSService
public boolean isDirectory(String uri)
isDirectory
in interface VFSService
public boolean isDirectory(Path path)
isDirectory
in interface VFSService
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.