public static class SecretPatterns.MaskingOutputStream extends LineTransformationOutputStream.Delegating
LineTransformationOutputStream.Delegatingout| Constructor and Description |
|---|
MaskingOutputStream(OutputStream out,
Supplier<Pattern> secretPattern,
String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eol(byte[] b,
int len) |
close, flushforceEol, trimEOL, write, writewritepublic MaskingOutputStream(@NonNull
OutputStream out,
@NonNull
Supplier<Pattern> secretPattern,
@NonNull
String charsetName)
out - the base output stream which will not be sent secretssecretPattern - a lazy computation of either the result of SecretPatterns.getAggregateSecretPattern(java.util.Collection<java.lang.String>), or null to just skip maskingcharsetName - the character set to detect stringsprotected void eol(byte[] b,
int len)
throws IOException
eol in class LineTransformationOutputStreamIOExceptionCopyright © 2016–2021. All rights reserved.