Class FileSystemImpl
java.lang.Object
org.apache.aries.util.filesystem.impl.FileSystemImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IDirectorygetFSRoot(File fs, IDirectory parent) This method gets the IDirectory that represents the root of a virtual file system.static ICloseableDirectorygetFSRoot(InputStream is) static booleanisValidZip(File zip) Check whether a file is actually a valid zipstatic booleanisValidZip(IFile zip) Check whether a file is actually a valid zip
-
Constructor Details
-
FileSystemImpl
public FileSystemImpl()
-
-
Method Details
-
getFSRoot
This method gets the IDirectory that represents the root of a virtual file system. The provided file can either identify a directory, or a zip file.- Parameters:
fs- the zip file.- Returns:
- the root of the virtual FS.
-
isValidZip
Check whether a file is actually a valid zip- Parameters:
zip-- Returns:
-
isValidZip
Check whether a file is actually a valid zip- Parameters:
zip-- Returns:
-
getFSRoot
-