Class FileSystemImpl


  • public class FileSystemImpl
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSystemImpl()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IDirectory getFSRoot​(java.io.File fs, IDirectory parent)
      This method gets the IDirectory that represents the root of a virtual file system.
      static ICloseableDirectory getFSRoot​(java.io.InputStream is)  
      static boolean isValidZip​(java.io.File zip)
      Check whether a file is actually a valid zip
      static boolean isValidZip​(IFile zip)
      Check whether a file is actually a valid zip
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileSystemImpl

        public FileSystemImpl()
    • Method Detail

      • getFSRoot

        public static IDirectory getFSRoot​(java.io.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​(java.io.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: