Class AntFilesLocator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​org.apache.tools.ant.types.Resource> resources  
    • Constructor Summary

      Constructors 
      Constructor Description
      AntFilesLocator​(java.lang.String encoding, int tabWidth)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(org.apache.tools.ant.types.Resource file)
      Adds the given file resource as a potential source file.
      protected java.io.InputStream getSourceStream​(java.lang.String path)
      Tries to locate the given source file and opens its binary content.
      • Methods inherited from class java.lang.Object

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

      • resources

        private final java.util.Map<java.lang.String,​org.apache.tools.ant.types.Resource> resources
    • Constructor Detail

      • AntFilesLocator

        public AntFilesLocator​(java.lang.String encoding,
                               int tabWidth)
    • Method Detail

      • add

        void add​(org.apache.tools.ant.types.Resource file)
        Adds the given file resource as a potential source file.
        Parameters:
        file - file resource to add
      • getSourceStream

        protected java.io.InputStream getSourceStream​(java.lang.String path)
                                               throws java.io.IOException
        Description copied from class: InputStreamSourceFileLocator
        Tries to locate the given source file and opens its binary content.
        Specified by:
        getSourceStream in class InputStreamSourceFileLocator
        Parameters:
        path - local path to the resource
        Returns:
        stream if the file could be located, null otherwise
        Throws:
        java.io.IOException - in case of problems while opening the stream