Class JarEntryAnnotationFileResource
java.lang.Object
org.checkerframework.framework.stub.JarEntryAnnotationFileResource
- All Implemented Interfaces:
AnnotationFileResource
JarEntry
-based implementation of AnnotationFileResource
.-
Constructor Summary
ConstructorDescriptionJarEntryAnnotationFileResource
(JarFile file, JarEntry entry) Constructs aAnnotationFileResource
for the specified entry in the specified JAR file. -
Method Summary
Modifier and TypeMethodDescriptionReturns a user-friendly description of the resource (e.g.Returns a stream for reading the contents of the resource.
-
Constructor Details
-
JarEntryAnnotationFileResource
Constructs aAnnotationFileResource
for the specified entry in the specified JAR file.- Parameters:
file
- the JAR fileentry
- the JAR entry
-
-
Method Details
-
getDescription
Description copied from interface:AnnotationFileResource
Returns a user-friendly description of the resource (e.g. a filesystem path).- Specified by:
getDescription
in interfaceAnnotationFileResource
- Returns:
- a description of the resource
-
getInputStream
Description copied from interface:AnnotationFileResource
Returns a stream for reading the contents of the resource.- Specified by:
getInputStream
in interfaceAnnotationFileResource
- Throws:
IOException
-