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.ZipFile
zipFile
(package private) java.nio.file.FileSystem
zipFileSystem
-
Constructor Summary
Constructors Constructor Description ZipSourceRepository(java.util.zip.ZipFile zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
contains(java.lang.String fileName)
SourceFileDataSource
getDataSource(java.lang.String fileName)
boolean
isPlatformDependent()
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.String fileName)
- Specified by:
contains
in interfaceSourceFinder.SourceRepository
-
isPlatformDependent
public boolean isPlatformDependent()
- Specified by:
isPlatformDependent
in interfaceSourceFinder.SourceRepository
-
getDataSource
public SourceFileDataSource getDataSource(java.lang.String fileName)
- Specified by:
getDataSource
in interfaceSourceFinder.SourceRepository
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceSourceFinder.SourceRepository
- Throws:
java.io.IOException
-
-