Interface VirtualFileSystem
- All Known Subinterfaces:
ListFS, MountableFS
- All Known Implementing Classes:
AbstractDelegateVirtualFileSystem, AbstractVirtualFileSystem, DefaultMountableVFS, DetachedVirtualFileSystem, EmptyVFS, FileACLVirtualFileSystem, FilteredFileSystem, FolderVFS, NativeVFS, SubVFS, VFolderVFS
public interface VirtualFileSystem
- Author:
- taha.bensalah@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidcopyTo(String inFile, VFile outFile, VFileFilter filter) copyToNativeTempFile(String path) createTempFile(String prefix, String suffix, String folder) voidvoidbooleanfilter(VFileFilter fileFilter) filter(VFileFilter fileFilter, String fsId) return ACL information on the given file or null if the file does could not be resolved Though null value should not be check against existence of the file/foldergetFileType(String path) getId()getInputStream(String path) getOutputStream(String path) getOutputStream(String path, boolean append) getParentFile(String path) VFile[]getRoots()booleanisDirectory(String path) booleanbooleanisParentOf(String parent, String child) longlastModified(String path) longVFile[]VFile[]listFiles(String path, VFileFilter fileFilter) booleanbooleanprobeContentType(String path, boolean bestEffort) byte[]voidcreates a sub fs with random generated fsIdvoidwrite(String path, InputStream stream) voidwriteBytes(String path, byte[] bytes)
-
Method Details
-
getId
String getId() -
get
-
get
-
getBase
-
lastModified
-
length
-
getParentFile
-
exists
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
mkdir
-
mkdirs
-
write
- Throws:
IOException
-
listFiles
-
listFiles
-
getRoots
VFile[] getRoots() -
isFile
-
getFileType
-
isDirectory
-
createTempFile
-
delete
- Throws:
IOException
-
deleteAll
- Throws:
IOException
-
renameTo
- Throws:
IOException
-
copyTo
- Throws:
IOException
-
copyTo
- Throws:
IOException
-
copyFrom
- Throws:
IOException
-
copyTo
- Throws:
IOException
-
isParentOf
-
subfs
creates a sub fs with random generated fsId- Parameters:
path-- Returns:
-
subfs
-
filter
-
filter
-
readBytes
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
probeContentType
- Throws:
IOException
-
getSecurityManager
VFSSecurityManager getSecurityManager() -
getACL
return ACL information on the given file or null if the file does could not be resolved Though null value should not be check against existence of the file/folder- Parameters:
path- path to get ACL for- Returns:
- ACL object for the given path
-
copyToNativeTempFile
- Throws:
IOException
-