public class MaskPasswordsOutputStream
extends hudson.console.LineTransformationOutputStream
Constructor and Description |
---|
MaskPasswordsOutputStream(OutputStream logger,
Collection<String> passwords) |
MaskPasswordsOutputStream(OutputStream logger,
Collection<String> passwords,
Collection<String> regexes) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
eol(byte[] bytes,
int len) |
void |
flush() |
forceEol, trimEOL, write, write
write
public MaskPasswordsOutputStream(OutputStream logger, @CheckForNull Collection<String> passwords, @CheckForNull Collection<String> regexes)
logger
- The output stream to which this MaskPasswordsOutputStream
will write topasswords
- A collection of String
s to be maskedregexes
- A collection of Regular Expression String
s to be maskedpublic MaskPasswordsOutputStream(OutputStream logger, @CheckForNull Collection<String> passwords)
logger
- The output stream to which this MaskPasswordsOutputStream
will write topasswords
- A collection of String
s to be maskedprotected void eol(byte[] bytes, int len) throws IOException
eol
in class hudson.console.LineTransformationOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class hudson.console.LineTransformationOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
Copyright © 2016–2017. All rights reserved.