Class ZipFileInputSource

    • Constructor Detail

      • ZipFileInputSource

        public ZipFileInputSource​(File file,
                                  String[] rootDirs,
                                  boolean inSourcePath)
                           throws IOException
        Create an InputSource directory from the given zip or jar file, providing a "union view" over the zip file with all entries with paths relative to the given root directories
        Parameters:
        file - a zip or jar file
        rootDirs - a list of directories to accept as roots (e.g. ["", "META-INF/joo-api"], in lookup order
        inSourcePath - whether this is part of the source path
        Throws:
        IOException - if an IO error occurs
      • ZipFileInputSource

        public ZipFileInputSource​(File file,
                                  String[] rootDirs,
                                  boolean inSourcePath,
                                  boolean inCompilePath)
                           throws IOException
        Create an InputSource directory from the given zip or jar file, providing a "union view" over the zip file with all entries with paths relative to the given root directories
        Parameters:
        file - a zip or jar file
        rootDirs - a list of directories to accept as roots (e.g. ["", "META-INF/joo-api"], in lookup order
        inSourcePath - whether this is part of the source path
        inCompilePath - whether this is part of the compile path
        Throws:
        IOException - if an IO error occurs