code: @PublicEvolving
  	@Deprecated
  	public <OUT> DataStreamSource<OUT> readFile(FileInputFormat<OUT> inputFormat,
  												String filePath,
  												FileProcessingMode watchType,
  												long interval,
  												FilePathFilter filter) {
  		inputFormat.setFilesFilter(filter);
  
  		TypeInformation<OUT> typeInformation;
  		try {
  			typeInformation = TypeExtractor.getInputFormatTypes(inputFormat);
  		} catch (Exception e) {
  			throw new InvalidProgramException("The type returned by the input format could not be " +
  					"automatically determined. Please specify the TypeInformation of the produced type " +
  					"explicitly by using the 'createInput(InputFormat, TypeInformation)' method instead.");
  		}
  		return readFile(inputFormat, filePath, watchType, interval, typeInformation);
  	}
docs: Reads the contents of the user-specified {@code filePath} based on the given {@link FileInputFormat}. Depending
  on the provided {@link FileProcessingMode}.
  
  <p>See {@link #readFile(FileInputFormat, String, FileProcessingMode, long)}
  
  @param inputFormat
  The input format used to create the data stream
  @param filePath
  The path of the file, as a URI (e.g., "file:///some/local/file" or "hdfs://host:port/file/path")
  @param watchType
  The mode in which the source should operate, i.e. monitor path and react to new data, or process once and exit
  @param interval
  In the case of periodic path monitoring, this specifies the interval (in millis) between consecutive path scans
  @param filter
  The files to be excluded from the processing
  @param <OUT>
  The type of the returned data stream
  @return The data stream that represents the data read from the given file
  
  @deprecated Use {@link FileInputFormat#setFilesFilter(FilePathFilter)} to set a filter and
  {@link StreamExecutionEnvironment#readFile(FileInputFormat, String, FileProcessingMode, long)}