org.apache.aries.util.filesystem.impl
Class FileSystemImpl
java.lang.Object
org.apache.aries.util.filesystem.impl.FileSystemImpl
public class FileSystemImpl
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemImpl
public FileSystemImpl()
getFSRoot
public static IDirectory getFSRoot(File fs,
IDirectory parent)
- 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
public static boolean isValidZip(File zip)
- Check whether a file is actually a valid zip
- Parameters:
zip -
- Returns:
isValidZip
public static boolean isValidZip(IFile zip)
- Check whether a file is actually a valid zip
- Parameters:
zip -
- Returns:
getFSRoot
public static ICloseableDirectory getFSRoot(InputStream is)
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.