public interface VfsService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Path path)
Check if we can read on this node.
|
boolean |
canWrite(Path path)
Check if we can write on this node.
|
boolean |
createNewFile(Path path)
Create a new file.
|
boolean |
delete(Path path)
Delete a file in the VFS tree.
|
boolean |
exists(Path path)
Check if the file exist really.
|
String |
getMimeType(String extension)
Return String object with the name of the file type.
|
boolean |
isDirectory(Path path)
Check if the node is a directory
|
boolean |
isFile(Path path)
Check if the node is a file.
|
String[] |
list(Path path)
Return String Array with the names of files and folder that they exist in
this path attribute.
|
boolean |
mkdir(Path path)
Create a new directory.
|
void |
mount(Path path,
VfsSource source)
Mounts a new source into the given path.
|
InputStream |
openForRead(Path path)
Return InputStream object, then we can read the files.
|
OutputStream |
openForWrite(Path path)
Return OutputStream object, then we can write the file.
|
VFile[] |
search(GlobExpr globExpr,
Path path)
This method we utilized it when we want to search any file inside of the
path
|
void |
unmount(Path path)
Unmounts the last source mounted into the given path.
|
void mount(Path path, VfsSource source) throws FileNotFoundException
path - The path to mount the source.source - The virtual file system source object to be mounted.FileNotFoundException - If the underlying file does not exists.void unmount(Path path) throws FileNotFoundException
path - The path to mount the source.FileNotFoundException - If the underlying file does not exists.boolean isDirectory(Path path)
path - The path attributeboolean exists(Path path)
path - The path attributeboolean isFile(Path path)
path - The path attributeboolean canWrite(Path path)
path - The path attributeboolean canRead(Path path)
path - The path attributeString[] list(Path path)
path - The path attributeInputStream openForRead(Path path)
path - The path attributeOutputStream openForWrite(Path path)
path - The path attributeVFile[] search(GlobExpr globExpr, Path path)
globExpr - object, that represent the regular expression for make
the quest.path - The path attributeboolean createNewFile(Path path)
path - The path attributeboolean delete(Path path)
path - The path attributeboolean mkdir(Path path)
path - The path attributeCopyright © 2015–2018 Bridje Framework. All rights reserved.