Sets the current {@link PrintStream} for standard output for the current nail.

@param out The {@link PrintStream} to use as stdout for the current nail. This should be a
PrintStream that ultimately writes to {@link NGOutputStream}.
767411
public void setOut(PrintStream out) {
    this.out = out;
    if (!(System.out instanceof ThreadLocalPrintStream)) {
      throw new IllegalStateException("System.out should be set by nailgun.");
    }
    ThreadLocalPrintStream tls = (ThreadLocalPrintStream) System.out;
    tls.init(out);
  }
954800
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.addHiddenParam(out, TrxMessageHeader.LOG_TRX_ID, this.getProperty(TrxMessageHeader.LOG_TRX_ID));
        return super.printData(out, iPrintOptions);   // Don't print
    }
589112
@Override
	public void setVerbose(@Nullable PrintStream out, int level) {
		super.setVerbose(out, level);
		if( level > 0 )
			this.parameterUpdate.setVerbose(verbose,level);
	}
553377
public void output(PrintWriter out)
    {
        Map<String, Entry> entries = config.getSortedEntries();
        
        if ( entries.isEmpty() )
        {
            return;
        }

        ColumnPrinter printer = build(entries);

        out.println("Configuration Details");
        printer.print(out);
    }
482908
void setOutputState(int s)
        throws IOException
    {
        if (s<0)
        {
            _outputState=DISABLED;
            if (_writer!=null)
                _writer.disable();
            _writer=null;
            if (_out!=null)
                _out.disable();
            _out=null;
        }
        else
            _outputState=s;
    }
1241083
private void output(File outFile) throws FileNotFoundException {
    System.out.println("Printing to " + outFile.toString());
    PrintStream out = new PrintStream(outFile);
    root.output(out, null);
    out.close();
  }
327463
public static void print(PrintStream out, String xpath, Object result){
        out.printf("XPath: %s%n", xpath);
        print(out, result, 2);
    }
313178
public static void printResult(Number[][] m1, PrintStream out)
    {
        if (out == null)
        {
            return;
        }
        for (int i = 0; i < m1.length; i++)
        {
            for (int j = 0; j < m1[0].length; j++)
            {
                out.print(" " + m1[i][j]);
            }
            out.println("");
        }
    }
475277
public synchronized void setOutputStream(OutputStream out)
    {
        _reopen=isStarted() && out!=out;
        _filename=null;
        if (_buffer!=null)
            _buffer.resetWriter();
        _out=out;
    }
133983
public void traceOn(OutputStream traceStream) {
    if (traceStream == null) {
      throw new NullPointerException();
    } else {
      this.traceStream = new PrintWriter(new OutputStreamWriter(traceStream, StandardCharsets.UTF_8), true);
    }
  }
1240632
public void setOutputUpdates(java.util.Collection<OutputUpdate> outputUpdates) {
        if (outputUpdates == null) {
            this.outputUpdates = null;
            return;
        }

        this.outputUpdates = new java.util.ArrayList<OutputUpdate>(outputUpdates);
    }
863963
public Processor setOutputDir(final File output) {
        if (!output.isAbsolute()) {
            throw new IllegalArgumentException("Output directory path must be absolute: " + output);
        }
        if (output.exists() && !output.isDirectory()) {
            throw new IllegalArgumentException("Output directory exists and is not a directory: " + output);
        }
        args.put("output.dir", output.getAbsolutePath());
        return this;
    }
665211
public void setOutput(java.io.Writer writer) {
        
        fOut = writer instanceof PrintWriter
                ? (PrintWriter)writer : new PrintWriter(writer);
        
    }
148825
public void printAutomaton(final PrintStream out) {
        out.println("digraph ahocorasick {");
        printDebug(out, root);
        out.println("}");
    }
1362029
public EntranceProcessingItem setOutputStream(Stream outputStream) {
		if (this.outputStream != null && this.outputStream != outputStream) {
			throw new IllegalStateException("Cannot overwrite output stream of EntranceProcessingItem");
		} else 
			this.outputStream = outputStream;
		return this;
	}
1012772
public static void print(String string, Number[][] matrix2, PrintStream out)
    {
        if (out == null)
        {
            return;
        }
        out.println(string);
        printResult(matrix2, out);
    }
1126616
public void printStackTrace(PrintStream stream) {
        if (getRootCause() != null) {
            stream.println(this.getMessage());
            getRootCause().printStackTrace(stream);
        } else {
            this.printStackTrace(stream);
        }
    }