public class FileAnnotationFileResource extends Object implements AnnotationFileResource
File
-based implementation of AnnotationFileResource
.Constructor and Description |
---|
FileAnnotationFileResource(File file)
Constructs a
AnnotationFileResource for the specified annotation file (stub file or
ajava file). |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a user-friendly description of the resource (e.g.
|
InputStream |
getInputStream()
Returns a stream for reading the contents of the resource.
|
public FileAnnotationFileResource(File file)
AnnotationFileResource
for the specified annotation file (stub file or
ajava file).file
- the annotation filepublic String getDescription()
AnnotationFileResource
getDescription
in interface AnnotationFileResource
public InputStream getInputStream() throws IOException
AnnotationFileResource
getInputStream
in interface AnnotationFileResource
IOException