Class DetachedVirtualFileSystem
java.lang.Object
net.thevpc.common.vfs.impl.DetachedVirtualFileSystem
- All Implemented Interfaces:
VirtualFileSystem
- Author:
- thevpc
-
Field Summary
Fields -
Constructor Summary
Constructors -
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)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DetachedVirtualFileSystem
public DetachedVirtualFileSystem()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceVirtualFileSystem
-
get
- Specified by:
getin interfaceVirtualFileSystem
-
get
- Specified by:
getin interfaceVirtualFileSystem
-
getBase
- Specified by:
getBasein interfaceVirtualFileSystem
-
lastModified
- Specified by:
lastModifiedin interfaceVirtualFileSystem
-
length
- Specified by:
lengthin interfaceVirtualFileSystem
-
getParentFile
- Specified by:
getParentFilein interfaceVirtualFileSystem
-
exists
- Specified by:
existsin interfaceVirtualFileSystem
-
getInputStream
- Specified by:
getInputStreamin interfaceVirtualFileSystem- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceVirtualFileSystem- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceVirtualFileSystem- Throws:
IOException
-
mkdir
- Specified by:
mkdirin interfaceVirtualFileSystem
-
mkdirs
- Specified by:
mkdirsin interfaceVirtualFileSystem
-
write
- Specified by:
writein interfaceVirtualFileSystem- Throws:
IOException
-
listFiles
- Specified by:
listFilesin interfaceVirtualFileSystem
-
listFiles
- Specified by:
listFilesin interfaceVirtualFileSystem
-
getRoots
- Specified by:
getRootsin interfaceVirtualFileSystem
-
isFile
- Specified by:
isFilein interfaceVirtualFileSystem
-
getFileType
- Specified by:
getFileTypein interfaceVirtualFileSystem
-
isDirectory
- Specified by:
isDirectoryin interfaceVirtualFileSystem
-
createTempFile
- Specified by:
createTempFilein interfaceVirtualFileSystem
-
delete
- Specified by:
deletein interfaceVirtualFileSystem- Throws:
IOException
-
deleteAll
- Specified by:
deleteAllin interfaceVirtualFileSystem- Throws:
IOException
-
renameTo
- Specified by:
renameToin interfaceVirtualFileSystem- Throws:
IOException
-
copyTo
- Specified by:
copyToin interfaceVirtualFileSystem- Throws:
IOException
-
copyTo
- Specified by:
copyToin interfaceVirtualFileSystem- Throws:
IOException
-
copyFrom
- Specified by:
copyFromin interfaceVirtualFileSystem- Throws:
IOException
-
copyTo
- Specified by:
copyToin interfaceVirtualFileSystem- Throws:
IOException
-
isParentOf
- Specified by:
isParentOfin interfaceVirtualFileSystem
-
subfs
Description copied from interface:VirtualFileSystemcreates a sub fs with random generated fsId- Specified by:
subfsin interfaceVirtualFileSystem- Parameters:
path-- Returns:
-
subfs
- Specified by:
subfsin interfaceVirtualFileSystem
-
filter
- Specified by:
filterin interfaceVirtualFileSystem
-
filter
- Specified by:
filterin interfaceVirtualFileSystem
-
readBytes
- Specified by:
readBytesin interfaceVirtualFileSystem- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceVirtualFileSystem- Throws:
IOException
-
probeContentType
- Specified by:
probeContentTypein interfaceVirtualFileSystem- Throws:
IOException
-
getSecurityManager
- Specified by:
getSecurityManagerin interfaceVirtualFileSystem
-
getACL
Description copied from interface:VirtualFileSystemreturn 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- Specified by:
getACLin interfaceVirtualFileSystem- Parameters:
path- path to get ACL for- Returns:
- ACL object for the given path
-
copyToNativeTempFile
- Specified by:
copyToNativeTempFilein interfaceVirtualFileSystem- Throws:
IOException
-