Package edu.umd.cs.findbugs.ba
Class SourceFinder.ZipSourceRepository
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.SourceFinder.ZipSourceRepository
-
- All Implemented Interfaces:
SourceFinder.SourceRepository,java.lang.AutoCloseable
- Enclosing class:
- SourceFinder
static class SourceFinder.ZipSourceRepository extends java.lang.Object implements SourceFinder.SourceRepository
A zip or jar archive containing source files.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.zip.ZipFilezipFile(package private) java.nio.file.FileSystemzipFileSystem
-
Constructor Summary
Constructors Constructor Description ZipSourceRepository(java.util.zip.ZipFile zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleancontains(java.lang.String fileName)SourceFileDataSourcegetDataSource(java.lang.String fileName)booleanisPlatformDependent()
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.String fileName)
- Specified by:
containsin interfaceSourceFinder.SourceRepository
-
isPlatformDependent
public boolean isPlatformDependent()
- Specified by:
isPlatformDependentin interfaceSourceFinder.SourceRepository
-
getDataSource
public SourceFileDataSource getDataSource(java.lang.String fileName)
- Specified by:
getDataSourcein interfaceSourceFinder.SourceRepository
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceSourceFinder.SourceRepository- Throws:
java.io.IOException
-
-