src/main/java/com/cloudbees/jenkins/support/filter/FilteredOutputStream.java
public synchronized FilteredWriter asWriter() {
        if (out == null) {
            throw new IllegalStateException("FilteredOutputStream is closed, cannot open a writer view");
        }
        return new FilteredWriter(new OutputStreamWriter(out, StandardCharsets.UTF_8), contentFilter);
    }
/**
     * @return a FilteredWriter view of this stream's underlying OutputStream
     */
@return a FilteredWriter view of this stream's underlying OutputStream
@return a FilteredWriter view of this stream ' s underlying OutputStream
public synchronized FilteredWriter asWriter() {
        if (out == null) {
            throw new IllegalStateException("FilteredOutputStream is closed, cannot open a writer view");
        }
        return new FilteredWriter(new OutputStreamWriter(out, StandardCharsets.UTF_8), contentFilter);
    }
public synchronized FilteredWriter asWriter ( ) { if ( out == null ) { throw new IllegalStateException ( "FilteredOutputStream is closed, cannot open a writer view" ) ; } return new FilteredWriter ( new OutputStreamWriter ( out , StandardCharsets . UTF_8 ) , contentFilter ) ; }
@return a FilteredWriter view of this stream's underlying OutputStream
@return a FilteredWriter view of this stream ' s underlying OutputStream