Package com.wavemaker.commons.io
Class BulkReplaceOperation
- java.lang.Object
-
- com.wavemaker.commons.io.BulkReplaceOperation
-
- All Implemented Interfaces:
ResourceOperation<File>
public class BulkReplaceOperation extends java.lang.Object implements ResourceOperation<File>
This operation can be used for bulk replace of tokens. The operation has a single write at the end. Created by ArjunSahasranam on 12/10/15.
-
-
Constructor Summary
Constructors Constructor Description BulkReplaceOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String from, java.lang.String to)voidaddAll(java.util.Map<java.lang.String,java.lang.String> values)voidperform(File resource)Perform the given operation on the resource.
-
-
-
Method Detail
-
add
public void add(java.lang.String from, java.lang.String to)
-
addAll
public void addAll(java.util.Map<java.lang.String,java.lang.String> values)
-
perform
public void perform(File resource)
Description copied from interface:ResourceOperationPerform the given operation on the resource.- Specified by:
performin interfaceResourceOperation<File>- Parameters:
resource- the resource
-
-