public FileSystemReplaceFileContentsHandler(
		String query, 
		String replacement, 
		FindReplaceResultsModel results, 
		boolean isRegexp, 
		boolean ignoreCase, 
		boolean makeBackups,
		String lineEnding
	) {
		super(lineEnding, false, FileContentsHandler.MODE_ARRAYS, Preferences.getPreferenceString(Preferences.OPEN_ENCODING).cur, Preferences.getPreferenceString(Preferences.SAVE_ENCODING).cur);

		this.results = results;
		this.isRegexp = isRegexp;
		this.ignoreCase = ignoreCase;
		this.makeBackups = makeBackups;
		
		if (!isRegexp && ignoreCase) {
			this.query = query.toLowerCase();
		} else {
			this.query = query;
		}
		
		this.replacement = replacement;
	}