Code example for PrintStream

Methods: println

0
    public int getErrorCount() { 
        return errorCount;
    } 
 
    private static void logError(Exception e, String msg) {
        out.println("  <parser-error>");
        if (e != null) {
            String message = e.getMessage();
            if (message == null) {
                message = e.getClass().getName();
            } 
            out.println("    " + StreamUtility.enc(message));
        } else { 
            out.println("    " + StreamUtility.enc(msg));
        } 
        out.println("  </parser-error>");
    } 
 
    public static void main(String[] args) {
 
        try {