Package soot

Class ClassLoaderFoundFile

    • Constructor Detail

      • ClassLoaderFoundFile

        public ClassLoaderFoundFile​(ClassLoader cl,
                                    String fileName)
    • Method Detail

      • isZipFile

        public boolean isZipFile()
        Description copied from interface: IFoundFile
        Returns true if and only if this file is contained within a zip file.
        Specified by:
        isZipFile in interface IFoundFile
      • getZipFile

        public ZipFile getZipFile()
        Description copied from interface: IFoundFile
        Returns the zip file or null.
        Specified by:
        getZipFile in interface IFoundFile
        Returns:
        the zip file
      • getFile

        public File getFile()
        Description copied from interface: IFoundFile
        Returns the concrete file on disk if it is not within a zip file. Otherwise, the returned file is the zip file itself. Note that it may return null in some circumstances.
        Specified by:
        getFile in interface IFoundFile
        Returns:
        the file on disk
      • getAbsolutePath

        public String getAbsolutePath()
        Description copied from interface: IFoundFile
        Returns the absolute path to the file or the zip file.
        Specified by:
        getAbsolutePath in interface IFoundFile
        Returns:
        the absolute path to the file or the zip file.
      • inputStream

        public InputStream inputStream()
        Description copied from interface: IFoundFile
        Opens the file and returns a new input stream containing the file contents.
        Specified by:
        inputStream in interface IFoundFile
        Returns:
        a fresh stream
      • close

        public void close()
        Description copied from interface: IFoundFile
        Closes all opened input streams.
        Specified by:
        close in interface IFoundFile