Class FileAnnotationFileResource

    • Constructor Summary

      Constructors 
      Constructor Description
      FileAnnotationFileResource​(java.io.File file)
      Constructs a AnnotationFileResource for the specified annotation file (stub file or ajava file).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a user-friendly description of the resource (e.g.
      java.io.InputStream getInputStream()
      Returns a stream for reading the contents of the resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileAnnotationFileResource

        public FileAnnotationFileResource​(java.io.File file)
        Constructs a AnnotationFileResource for the specified annotation file (stub file or ajava file).
        Parameters:
        file - the annotation file
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: AnnotationFileResource
        Returns a user-friendly description of the resource (e.g. a filesystem path).
        Specified by:
        getDescription in interface AnnotationFileResource
        Returns:
        a description of the resource
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Description copied from interface: AnnotationFileResource
        Returns a stream for reading the contents of the resource.
        Specified by:
        getInputStream in interface AnnotationFileResource
        Throws:
        java.io.IOException