Class NativeVFS
java.lang.Object
net.thevpc.common.vfs.impl.AbstractVirtualFileSystem
net.thevpc.common.vfs.impl.NativeVFS
- All Implemented Interfaces:
VirtualFileSystem
- Direct Known Subclasses:
FolderVFS
- Author:
- taha.bensalah@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTempFile(String prefix, String suffix, String folder) voidbooleanreturn 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) getInputStream(String path) getOutputStream(String path) getOutputStream(String path, boolean append) getParentFile(String path) VFile[]getRoots()booleanisDirectory(String file) booleanlonglastModified(String path) longVFile[]VFile[]listFiles(String path, VFileFilter fileFilter) booleanbooleanprotected FiletoNativeFile(VFile file) toString()protected FiletoValidJFile(String file) protected VFilevoidwrite(String file, InputStream content) Methods inherited from class AbstractVirtualFileSystem
copyFrom, copyTo, copyTo, copyTo, copyToNativeTempFile, deleteAll, filter, filter, get, getId, isParentOf, newFile, normalizeVirtualPath, probeContentType, readBytes, renameTo, subfs, subfs, toNativeFile, toNativePath, toPathString, toPathString, toVirtualPath, writeBytes
-
Constructor Details
-
NativeVFS
public NativeVFS() -
NativeVFS
-
-
Method Details
-
toVFile
-
get
- Specified by:
getin interfaceVirtualFileSystem- Overrides:
getin classAbstractVirtualFileSystem
-
getBase
-
toNativeFile
-
toValidJFile
-
lastModified
-
length
-
getParentFile
- Specified by:
getParentFilein interfaceVirtualFileSystem- Overrides:
getParentFilein classAbstractVirtualFileSystem
-
exists
-
getInputStream
- Throws:
FileNotFoundException
-
getOutputStream
- Throws:
IOException
-
mkdir
-
mkdirs
-
getOutputStream
- Throws:
IOException
-
isFile
-
isDirectory
-
getFileType
-
write
- Specified by:
writein interfaceVirtualFileSystem- Overrides:
writein classAbstractVirtualFileSystem- Throws:
IOException
-
listFiles
- Specified by:
listFilesin interfaceVirtualFileSystem- Overrides:
listFilesin classAbstractVirtualFileSystem
-
listFiles
-
getRoots
- Specified by:
getRootsin interfaceVirtualFileSystem- Overrides:
getRootsin classAbstractVirtualFileSystem
-
createTempFile
- Specified by:
createTempFilein interfaceVirtualFileSystem- Overrides:
createTempFilein classAbstractVirtualFileSystem
-
delete
- Throws:
IOException
-
getSecurityManager
-
toString
-
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- Parameters:
path- path to get ACL for- Returns:
- ACL object for the given path
-