package innovimax.mixthem.operation;

import innovimax.mixthem.MixException;
import innovimax.mixthem.arguments.RuleParam;
import innovimax.mixthem.arguments.ParamValue;
import innovimax.mixthem.io.InputResource;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;
import java.util.List;

/**
* <p>Abstract class for all character operation.</p>
* @see ICopyOperation
* @author Innovimax
* @version 1.0
*/
public abstract class AbstractCopyOperation extends AbstractOperation implements ICopyOperation {

	/**
	* Constructor
 	* @param params The list of parameters (maybe empty)
	* @see innovimax.mixthem.arguments.RuleParam
	* @see innovimax.mixthem.arguments.ParamValue
	*/
	public AbstractCopyOperation(final Map<RuleParam, ParamValue> params) {
		super(params);
	}

	@Override
	public void processFiles(final List<InputResource> inputs, final OutputStream output) throws MixException, IOException {		
		inputs.stream().forEach(input -> {
			try {
		 		process(input, output);
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		});
	}

}

@@ -66,24 +66,65 @@
 xException;%0A
+import innovimax.mixthem.arguments.Rule;%0A
 import innov
@@ -565,16 +565,44 @@
 ration %7B
+%0A%09%0A%09final private Rule rule;
 %0A%0A%09/**%0A%09
@@ -803,16 +803,33 @@
 n(final 
+Rule rule, final 
 Map%3CRule
@@ -874,16 +874,36 @@
 arams);%0A
+%09%09this.rule = rule;%0A
 %09%7D%0A%0A%09@Ov

Update AbstractCopyOperation.java