Class FileAnnotationFileResource
java.lang.Object
org.checkerframework.framework.stub.FileAnnotationFileResource
- All Implemented Interfaces:
AnnotationFileResource
File
-based implementation of AnnotationFileResource
.-
Constructor Summary
ConstructorDescriptionConstructs aAnnotationFileResource
for the specified annotation file (stub file or ajava 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
-
FileAnnotationFileResource
Constructs aAnnotationFileResource
for the specified annotation file (stub file or ajava file).- Parameters:
file
- the annotation file
-
-
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
-