Prints the given string tree.

@param pw
the writer to be used to print the tree.
@param l
a string tree, i.e., a string list that can contain other
string lists, and so on recursively.
504759
static void printList(final PrintWriter pw, final List<?> l) {
        for (int i = 0; i < l.size(); ++i) {
            Object o = l.get(i);
            if (o instanceof List) {
                printList(pw, (List<?>) o);
            } else {
                pw.print(o.toString());
            }
        }
    }
696285
public void println(String s) throws IOException
  {
    if(s!=null) {
        this.output.write(s.getBytes(), 0, s.length());
    }
    this.output.write(CRLF, 0, 2);
  }
698101
final public void println(long v)
  {
    Writer out = this.out;
    if (out == null)
      return;

    print(v);

    try {
      out.write(_newline, 0, _newline.length);
    } catch (IOException e) {
      log.log(Level.FINE, e.toString(), e);
    }
  }
677618
public void printStackTrace(java.io.PrintWriter pw) {
        if ( exception != null ) {
            String superString = getLocalMessage();
            synchronized (pw) {
                pw.print(superString);
                pw.print((superString.endsWith(".") ?
                          " Caused by " : ". Caused by "));
                exception.printStackTrace( pw );
            }
        } else {
            super.printStackTrace( pw );
        }
    }
1267217
private void printRawDiag(PrintWriter pw, String prefix, int pos, String msg) {
        if (source == null || pos == Position.NOPOS) {
            printRawLines(pw, prefix + msg);
        } else {
            int line = source.getLineNumber(pos);
            JavaFileObject file = source.getFile();
            if (file != null)
                printRawLines(pw,
                           file.getName() + ":" +
                           line + ": " + msg);
            printErrLine(pos, pw);
        }
        pw.flush();
    }
872040
@Override
    public void printStackTrace(PrintWriter pw) {
        if ( getCause() != null ) {
            String superString = getLocalMessage();
            synchronized (pw) {
                pw.print(superString);
                pw.print((superString.endsWith(".") ?
                          " Caused by " : ". Caused by "));
                getCause().printStackTrace( pw );
            }
        } else {
            super.printStackTrace( pw );
        }
    }
450143
public void print(int w, int d)
    {
        print(new PrintWriter(System.out, true), w, d);
    }
273416
public void println(String s) throws IOException
    {
        if(this._listener!= null &&  !checkIfCalledFromWLonError()){
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "non blocking println String , WriteListener enabled: " + this._listener);
            if(s!=null){
                this.println_NonBlocking(s);
            }            
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "println String");
            super.println(s);
        }
    }
47008
public void writeOntTxt(PrintWriter pw) {
        for (String id : terms.keySet()) {
            OntologyTerm term = terms.get(id);
            Set<String> synSet = new HashSet<String>();
            synSet.add(term.getName());
            for (Synonym s : term.getSynonyms()) {
                String st = s.getType();
                if (id.startsWith("PTCO")
                        || (st != null && !st
                                .matches(".*(InChI|SMILES|FORMULA).*"))) {
                    String synonym = s.getSyn();
                    if (!synonym.matches("\\S")) {// reject ontology terms
                                                  // consisting of a single
                                                  // letter as these produce too
                                                  // many false positives
                        synSet.add(synonym);
                    }
                }
            }

            pw.println("[" + id + "]");
            for (String syn : synSet)
                pw.println(syn);
            pw.println();
        }
        pw.flush();
    }
689904
@Override
    protected void writeEdge(PrintWriter pw) {
        pw.println("begin edge");
        pw.println("letter:letter");
        pw.println("end edge");
    }
263122
public boolean writeListBegin(int length, String type)
        throws IOException
    {
        os.write('V');

        if (type != null) {
            os.write('t');
            printLenString(type);
        }

        if (length >= 0) {
            os.write('l');
            os.write(length >> 24);
            os.write(length >> 16);
            os.write(length >> 8);
            os.write(length);
        }

        return true;
    }
16243
public static <V> String printNodeTree(ParsingResult<V> parsingResult) {
        checkArgNotNull(parsingResult, "parsingResult");
        return printNodeTree(parsingResult, Predicates.<Node<V>>alwaysTrue(), Predicates.<Node<V>>alwaysTrue());
    }
907488
public void printLenString(String v)
        throws IOException
    {
        if (v == null) {
            os.write(0);
            os.write(0);
        }
        else {
            int len = v.length();
            os.write(len >> 8);
            os.write(len);

            printString(v, 0, len);
        }
    }
1337534
public static void printToFileLn(File file, String message, boolean append) {
    PrintWriter pw = null;
    try {
      Writer fw = new FileWriter(file, append);
      pw = new PrintWriter(fw);
      pw.println(message);
    } catch (Exception e) {
      System.err.println("Exception: in printToFileLn " + file.getAbsolutePath() + ' ' + message);
      e.printStackTrace();
    } finally {
      if (pw != null) {
        pw.flush();
        pw.close();
      }
    }
  }
1031584
protected void printNode()
	{
		System.out.println(this.depth+", "+this.splitAttribute+", "+this.splitValue+", "+this.r);
		
		if(this.internalNode)
		{
			this.right.printNode();
			this.left.printNode();
		}
	}
509657
public void println(char c) throws IOException
    {  

        if(this._listener!= null &&  !checkIfCalledFromWLonError()){
            
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "non blocking println char , WriteListener enabled: " + this._listener);
            this.println_NonBlocking(Character.toString(c));
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "println char");
            super.println(c);
        }
    }
134308
void printStackTrace(String lineSep, java.io.PrintWriter pw) {
        printText(pw, "msg", "Message:");
        pw.println("   " + getMessage());
        printText(pw, "stackTrace", "Stack trace:");
        if (stackTrace == null) {
            if (currentException != null)
                serializeCurrentException();
            if (stackTrace == null && previousExceptionObject != null)
                setStackTrace(previousExceptionObject);
        }

        if (stackTrace != null) {
            if (lineSep.equals(lineSeparator)) {
                pw.println(stackTrace);
            } else {
                char traceLineSep = lineSep.charAt(0);
                char currentLineSep = lineSeparator.charAt(0);
                StringBuffer sb = new StringBuffer(stackTrace);
                for (int i = 0; i < sb.length(); i++) {
                    if (sb.charAt(i) == traceLineSep) {
                        sb.setCharAt(i, currentLineSep);
                    }
                }
                pw.println(stackTrace);
            }
        }

        if (previousExceptionInfo != null) {
            printText(pw, "previousException", "Previous exception:");
            previousExceptionInfo.printStackTrace(lineSep, pw);
        }
    }