@NotThreadSafe public final class ReplaceAllOutputStream extends OutputStream
OutputStream
wrapperReplaceAllInputStream
Constructor and Description |
---|
ReplaceAllOutputStream(byte[] search,
byte[] replace,
OutputStream output)
Create a new
ReplaceAllOutputStream |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(int b) |
flush, write, write
public ReplaceAllOutputStream(byte[] search, byte[] replace, OutputStream output)
ReplaceAllOutputStream
search
- the byte sequence to search forreplace
- the replacement byte sequence to substitute when the search
sequence if foundoutput
- the OutputStream
to operate onpublic void write(int b) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2017–2018 earcam. All rights reserved.