src/main/java/com/cloudbees/jenkins/support/filter/FilteredOutputStream.java
@Override
    public synchronized void flush() throws IOException {
        ensureOpen();
        if (decodedBuf.position() > 0) {
            decodedBuf.flip();
            String contents = decodedBuf.toString();
            String filtered = ContentFilter.filter(contentFilter, contents);
            out.write(filtered.getBytes(charset));
            decodedBuf.clear();
        }
        out.flush();
    }
/**
     * Flushes the current buffered contents and filters them as is.
     */
Flushes the current buffered contents and filters them as is.
Flushes the current buffered contents and filters them as is .
@Override
    public synchronized void flush() throws IOException {
        ensureOpen();
        if (decodedBuf.position() > 0) {
            decodedBuf.flip();
            String contents = decodedBuf.toString();
            String filtered = ContentFilter.filter(contentFilter, contents);
            out.write(filtered.getBytes(charset));
            decodedBuf.clear();
        }
        out.flush();
    }
@ Override public synchronized void flush ( ) throws IOException { ensureOpen ( ) ; if ( decodedBuf . position ( ) > 0 ) { decodedBuf . flip ( ) ; String contents = decodedBuf . toString ( ) ; String filtered = ContentFilter . filter ( contentFilter , contents ) ; out . write ( filtered . getBytes ( charset ) ) ; decodedBuf . clear ( ) ; } out . flush ( ) ; }
Flushes the current buffered contents and filters them as is.
Flushes the current buffered contents and filters them as is .