- //TODO: pending fix in replace stream
- String data = IOUtils.readSmallStream(in);
- in.close();
- for(i = 0 ; i < from.length;i++) {
- data=data.replace(from[i], to[i]);
- }
+ InputStream stream;
+
+ stream = IOUtils.openResource(location, name);
+ System.out.println("SOURCE = ((" + IOUtils.readSmallStream(stream) + "))");
+ stream=new ReplaceInputStream(IOUtils.openResource(location, name), from, to);
+ System.out.println("RESULT = ((" + IOUtils.readSmallStream(stream) + "))");