public class FoundFile extends Object implements IFoundFile
| Modifier and Type | Field and Description |
|---|---|
protected String |
entryName |
protected File |
file |
protected List<InputStream> |
openedInputStreams |
protected Path |
path |
protected ZipEntry |
zipEntry |
protected SharedCloseable<ZipFile> |
zipFile |
| Constructor and Description |
|---|
FoundFile(File file) |
FoundFile(Path path) |
FoundFile(String archivePath,
String entryName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all opened input streams.
|
protected void |
closeZipFile(List<Exception> errs) |
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, waitsilentCloseprotected final List<InputStream> openedInputStreams
protected Path path
protected File file
protected String entryName
protected SharedCloseable<ZipFile> zipFile
protected ZipEntry zipEntry
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.