Class JarEntryAnnotationFileResource
java.lang.Object
org.checkerframework.framework.stub.JarEntryAnnotationFileResource
- All Implemented Interfaces:
AnnotationFileResource
Implementation of
AnnotationFileResource for an entry in a JAR or ZIP archive. The
resource holds the entry's contents, so it holds no open file handle.-
Constructor Summary
ConstructorsConstructorDescriptionJarEntryAnnotationFileResource(File archive, String entryName, byte[] contents) Constructs aAnnotationFileResourcefor the specified entry in the specified archive. -
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 aAnnotationFileResourcefor the specified entry in the specified archive.- Parameters:
archive- the JAR or ZIP archiveentryName- the name of the entry in the archivecontents- the contents of the entry
-
-
Method Details
-
getDescription
Description copied from interface:AnnotationFileResourceReturns a user-friendly description of the resource (e.g. a filesystem path).- Specified by:
getDescriptionin interfaceAnnotationFileResource- Returns:
- a description of the resource
-
getInputStream
Description copied from interface:AnnotationFileResourceReturns a stream for reading the contents of the resource.- Specified by:
getInputStreamin interfaceAnnotationFileResource
-