Package edu.umd.cs.findbugs.ba
Class ZipSourceFileDataSource
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.ZipSourceFileDataSource
-
- All Implemented Interfaces:
SourceFileDataSource
public class ZipSourceFileDataSource extends java.lang.Object implements SourceFileDataSource
A source file data source for source files residing in Zip or Jar archives.
-
-
Constructor Summary
Constructors Constructor Description ZipSourceFileDataSource(java.util.zip.ZipFile zipFile, java.lang.String entryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFullFileName()Get the full filename of the source file.longgetLastModified()java.io.InputStreamopen()Open an InputStream on the source file.
-
-
-
Method Detail
-
open
public java.io.InputStream open() throws java.io.IOExceptionDescription copied from interface:SourceFileDataSourceOpen an InputStream on the source file.- Specified by:
openin interfaceSourceFileDataSource- Throws:
java.io.IOException
-
getFullFileName
public java.lang.String getFullFileName()
Description copied from interface:SourceFileDataSourceGet the full filename of the source file.- Specified by:
getFullFileNamein interfaceSourceFileDataSource
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceSourceFileDataSource
-
-