Class DirectorySourceFileLocator

    • Constructor Summary

      Constructors 
      Constructor Description
      DirectorySourceFileLocator​(java.io.File directory, java.lang.String encoding, int tabWidth)
      Creates a new locator that searches for source files in the given directory.
    • Constructor Detail

      • DirectorySourceFileLocator

        public DirectorySourceFileLocator​(java.io.File directory,
                                          java.lang.String encoding,
                                          int tabWidth)
        Creates a new locator that searches for source files in the given directory.
        Parameters:
        directory - directory to search for source file
        encoding - encoding of the source files, null for platform default encoding
        tabWidth - tab width in source files as number of blanks
    • Method Detail

      • 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