Package soot
Class ClassLoaderFoundFile
- java.lang.Object
-
- soot.ClassLoaderFoundFile
-
- All Implemented Interfaces:
IFoundFile
public class ClassLoaderFoundFile extends Object implements IFoundFile
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderFoundFile(ClassLoader cl, String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes all opened input streams.StringgetAbsolutePath()Returns the absolute path to the file or the zip file.FilegetFile()Returns the concrete file on disk if it is not within a zip file.StringgetFilePath()ZipFilegetZipFile()Returns the zip file or null.InputStreaminputStream()Opens the file and returns a new input stream containing the file contents.booleanisZipFile()Returns true if and only if this file is contained within a zip file.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface soot.IFoundFile
silentClose
-
-
-
-
Constructor Detail
-
ClassLoaderFoundFile
public ClassLoaderFoundFile(ClassLoader cl, String fileName)
-
-
Method Detail
-
getFilePath
public String getFilePath()
- Specified by:
getFilePathin interfaceIFoundFile
-
isZipFile
public boolean isZipFile()
Description copied from interface:IFoundFileReturns true if and only if this file is contained within a zip file.- Specified by:
isZipFilein interfaceIFoundFile
-
getZipFile
public ZipFile getZipFile()
Description copied from interface:IFoundFileReturns the zip file or null.- Specified by:
getZipFilein interfaceIFoundFile- Returns:
- the zip file
-
getFile
public File getFile()
Description copied from interface:IFoundFileReturns 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:
getFilein interfaceIFoundFile- Returns:
- the file on disk
-
getAbsolutePath
public String getAbsolutePath()
Description copied from interface:IFoundFileReturns the absolute path to the file or the zip file.- Specified by:
getAbsolutePathin interfaceIFoundFile- Returns:
- the absolute path to the file or the zip file.
-
inputStream
public InputStream inputStream()
Description copied from interface:IFoundFileOpens the file and returns a new input stream containing the file contents.- Specified by:
inputStreamin interfaceIFoundFile- Returns:
- a fresh stream
-
close
public void close()
Description copied from interface:IFoundFileCloses all opened input streams.- Specified by:
closein interfaceIFoundFile
-
-