git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'ee020e75a5de0c1e54557db79f77edc50e05ea04'
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
utils
/
streams
/
ReplaceOutputStream.java
diff --git
a/src/be/nikiroo/utils/streams/ReplaceOutputStream.java
b/src/be/nikiroo/utils/streams/ReplaceOutputStream.java
index e7e6c9f5a7c03456902e471864722af00478de48..c6679cc3b3eef4ad15e50e022013663c3b75dade 100644
(file)
--- a/
src/be/nikiroo/utils/streams/ReplaceOutputStream.java
+++ b/
src/be/nikiroo/utils/streams/ReplaceOutputStream.java
@@
-3,6
+3,8
@@
package be.nikiroo.utils.streams;
import java.io.IOException;
import java.io.OutputStream;
import java.io.IOException;
import java.io.OutputStream;
+import be.nikiroo.utils.StringUtils;
+
/**
* This {@link OutputStream} will change some of its content by replacing it
* with something else.
/**
* This {@link OutputStream} will change some of its content by replacing it
* with something else.
@@
-25,7
+27,7
@@
public class ReplaceOutputStream extends BufferedOutputStream {
* the {@link String} to replace with
*/
public ReplaceOutputStream(OutputStream out, String from, String to) {
* the {@link String} to replace with
*/
public ReplaceOutputStream(OutputStream out, String from, String to) {
- this(out, Str
eamUtils.bytes(from), StreamUtils.b
ytes(to));
+ this(out, Str
ingUtils.getBytes(from), StringUtils.getB
ytes(to));
}
/**
}
/**
@@
-58,7
+60,7
@@
public class ReplaceOutputStream extends BufferedOutputStream {
* the values to replace with
*/
public ReplaceOutputStream(OutputStream out, String[] froms, String[] tos) {
* the values to replace with
*/
public ReplaceOutputStream(OutputStream out, String[] froms, String[] tos) {
- this(out, StreamUtils.
bytes(froms), StreamUtils.b
ytes(tos));
+ this(out, StreamUtils.
getBytes(froms), StreamUtils.getB
ytes(tos));
}
/**
}
/**