Interface VFile
- All Known Implementing Classes:
DefaultFile, DetachedFile
public interface VFile
- Author:
- taha.bensalah@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidcopyTo(VFile outFile, VFileFilter filter) voiddelete()voidbooleanexists()VFile[]find(String path, VFileFilter filter) getACL()getBaseFile(String vfsId) getName()getOutputStream(boolean append) getPath()booleanisAllowedCreateChild(VFileType type, String user) booleanisAllowedList(String user) booleanisAllowedRead(String user) booleanisAllowedRemove(String user) booleanisAllowedRemoveChild(VFileType type, String user) booleanisAllowedUpdateChild(VFileType type, String user) booleanisAllowedWrite(String user) booleanbooleanbooleanisFile()booleanisParentOf(String path) longlonglength()VFile[]VFile[]listFiles(VFileFilter fileFilter) booleanmkdirs()probeContentType(boolean bestEffort) byte[]voidvoidvisit(String path, VFileVisitor visitor, VFileFilter filter) voidvisit(VFileVisitor visitor, VFileFilter filter) voidwriteBytes(byte[] bytes)
-
Method Details
-
getFileSystem
VirtualFileSystem getFileSystem() -
getName
String getName() -
getPath
String getPath() -
getBaseFile
-
getACL
VirtualFileACL getACL() -
getParentPath
String getParentPath() -
getParentFile
VFile getParentFile() -
getFileType
VFileType getFileType() -
listFiles
VFile[] listFiles() -
listFiles
-
isFile
boolean isFile() -
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
exists
boolean exists() -
mkdirs
boolean mkdirs() -
delete
- Throws:
IOException
-
deleteAll
- Throws:
IOException
-
isDirectory
boolean isDirectory() -
length
long length() -
lastModified
long lastModified() -
get
-
copyTo
- Throws:
IOException
-
copyFrom
- Throws:
IOException
-
copyTo
- Throws:
IOException
-
copyTo
- Throws:
IOException
-
renameTo
- Throws:
IOException
-
isParentOf
-
isChildOf
-
visit
-
find
-
visit
-
readBytes
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
probeContentType
- Throws:
IOException
-
probeContentType
- Throws:
IOException
-
getFileName
- Throws:
IOException
-
isAllowedCreateChild
-
isAllowedRemoveChild
-
isAllowedUpdateChild
-
isAllowedList
-
isAllowedRemove
-
isAllowedRead
-
isAllowedWrite
-
copyToNativeTempFile
- Throws:
IOException
-