public class ClassLoaderFoundFile extends Object implements IFoundFile
| Constructor and Description |
|---|
ClassLoaderFoundFile(ClassLoader cl,
String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all opened input streams.
|
String |
getAbsolutePath()
Returns the absolute path to the file or the zip file.
|
File |
getFile()
Returns the concrete file on disk if it is not within a zip file.
|
String |
getFilePath() |
ZipFile |
getZipFile()
Returns the zip file or null.
|
InputStream |
inputStream()
Opens the file and returns a new input stream containing the file contents.
|
boolean |
isZipFile()
Returns true if and only if this file is contained within a zip file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsilentClosepublic ClassLoaderFoundFile(ClassLoader cl, String fileName)
public String getFilePath()
getFilePath in interface IFoundFilepublic boolean isZipFile()
IFoundFileisZipFile in interface IFoundFilepublic ZipFile getZipFile()
IFoundFilegetZipFile in interface IFoundFilepublic File getFile()
IFoundFilegetFile in interface IFoundFilepublic String getAbsolutePath()
IFoundFilegetAbsolutePath in interface IFoundFilepublic InputStream inputStream()
IFoundFileinputStream in interface IFoundFilepublic void close()
IFoundFileclose in interface IFoundFileCopyright © 2024 Soot OSS. All rights reserved.