public class ReplacingOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
ReplacingOutputStream(OutputStream out,
byte[] replaceFrom,
byte[] replaceTo)
Constructs a ReplacingOutputStream replacing replaceFrom with replaceTo
|
public ReplacingOutputStream(OutputStream out, byte[] replaceFrom, byte[] replaceTo)
out
- The base outputream to which the data is to be written after
the replacementreplaceFrom
- the byte-sequence to be replacedreplaceTo
- the replacement byte sequencepublic void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.