code: public void setOutput(java.io.Writer writer) {
          
          fOut = writer instanceof PrintWriter
                  ? (PrintWriter)writer : new PrintWriter(writer);
          
      }
docs: Sets the output writer.