Class FileDataSource

  • All Implemented Interfaces:
    Closeable, AutoCloseable, DataSource

    public class FileDataSource
    extends net.sourceforge.pmd.util.datasource.internal.PathDataSource
    DataSource implementation to read data from a file.
    • Method Summary

      • Methods inherited from class net.sourceforge.pmd.util.datasource.internal.PathDataSource

        equals, getInputStream, getNiceFileName, hashCode, toString
      • Methods inherited from class net.sourceforge.pmd.util.datasource.internal.AbstractDataSource

        close
    • Constructor Detail

      • FileDataSource

        public FileDataSource​(File file)
        Parameters:
        file - the file to read