/** * Output of printTree() to a PrintStream. * Usage: * DebugUtil.printTree(root, System.out); * * @param root the root component * @param out the PrintStream to write to */ public static void printTree(UIComponent root, PrintStream out) { PrintWriter writer = new PrintWriter(out); printTree(root, writer); writer.flush(); }
public static void printTree(UIComponent root, Logger logger, Level level) { StringWriter sw = new StringWriter(); printTree(root, sw); logger.log(level, sw.toString()); }
public static void printTree(UIComponent root, Logger logger, Level level) { StringWriter sw = new StringWriter(); printTree(root, sw); logger.log(level, sw.toString()); }
public static void printTree(UIComponent root, Logger logger, Level level) { StringWriter sw = new StringWriter(); printTree(root, sw); logger.log(level, sw.toString()); }
public static void printTree(UIComponent root, Logger logger, Level level) { StringWriter sw = new StringWriter(); printTree(root, sw); logger.log(level, sw.toString()); }
public static void printTree(UIComponent root, Logger logger, Level level) { StringWriter sw = new StringWriter(); printTree(root, sw); logger.log(level, sw.toString()); }
/** * @param root the root component * @return the output of printTree() as a String. * Useful when used with a Logger. For example: * logger.log(DebugUtil.printTree(root)); */ public static String printTree(UIComponent root) { Writer writer = new FastStringWriter(1024); printTree(root, writer); return writer.toString(); }
/** * @param root the root component * @return the output of printTree() as a String. * Useful when used with a Logger. For example: * logger.log(DebugUtil.printTree(root)); */ public static String printTree(UIComponent root) { Writer writer = new FastStringWriter(1024); printTree(root, writer); return writer.toString(); }
/** * @param root the root component * @return the output of printTree() as a String. * Useful when used with a Logger. For example: * logger.log(DebugUtil.printTree(root)); */ public static String printTree(UIComponent root) { Writer writer = new FastStringWriter(1024); printTree(root, writer); return writer.toString(); }
/** * @param root the root component * @return the output of printTree() as a String. * Useful when used with a Logger. For example: * logger.log(DebugUtil.printTree(root)); */ public static String printTree(UIComponent root) { Writer writer = new FastStringWriter(1024); printTree(root, writer); return writer.toString(); }
/** * @param root the root component * @return the output of printTree() as a String. * Useful when used with a Logger. For example: * logger.log(DebugUtil.printTree(root)); */ public static String printTree(UIComponent root) { Writer writer = new FastStringWriter(1024); printTree(root, writer); return writer.toString(); }
/** * Output of printTree() to a PrintStream. * Usage: * DebugUtil.printTree(root, System.out); * * @param root the root component * @param out the PrintStream to write to */ public static void printTree(UIComponent root, PrintStream out) { PrintWriter writer; try { writer = new PrintWriter(new PrintStream(out, true, RIConstants.CHAR_ENCODING)); printTree(root, writer); writer.flush(); } catch (UnsupportedEncodingException ex) { System.out.println(ex.getMessage()); } }
/** * Output of printTree() to a PrintStream. * Usage: * DebugUtil.printTree(root, System.out); * * @param root the root component * @param out the PrintStream to write to */ public static void printTree(UIComponent root, PrintStream out) { PrintWriter writer; try { writer = new PrintWriter(new PrintStream(out, true, RIConstants.CHAR_ENCODING)); printTree(root, writer); writer.flush(); } catch (UnsupportedEncodingException ex) { System.out.println(ex.getMessage()); } }
/** * Output of printTree() to a PrintStream. * Usage: * DebugUtil.printTree(root, System.out); * * @param root the root component * @param out the PrintStream to write to */ public static void printTree(UIComponent root, PrintStream out) { PrintWriter writer; try { writer = new PrintWriter(new PrintStream(out, true, RIConstants.CHAR_ENCODING)); printTree(root, writer); writer.flush(); } catch (UnsupportedEncodingException ex) { System.out.println(ex.getMessage()); } }
public static void printState(Map state, Logger out) { Set<Map.Entry> entrySet = state.entrySet(); Object key, value; String keyIsSerializable, valueIsSerializable; for (Map.Entry cur : entrySet) { key = cur.getKey(); value = cur.getValue(); keyIsSerializable = (key instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; valueIsSerializable = (value instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; out.severe("key: " + key.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); out.severe("value: " + value.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); if (value instanceof Object []) { printTree((Object []) value, out); } } }
/** * Output of printTree() to a PrintStream. * Usage: * DebugUtil.printTree(root, System.out); * * @param root the root component * @param out the PrintStream to write to */ public static void printTree(UIComponent root, PrintStream out) { PrintWriter writer; try { writer = new PrintWriter(new PrintStream(out, true, RIConstants.CHAR_ENCODING)); printTree(root, writer); writer.flush(); } catch (UnsupportedEncodingException ex) { System.out.println(ex.getMessage()); } }
public static void printState(Map state, Logger out) { Set<Map.Entry> entrySet = state.entrySet(); Object key, value; String keyIsSerializable, valueIsSerializable; for (Map.Entry cur : entrySet) { key = cur.getKey(); value = cur.getValue(); keyIsSerializable = (key instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; valueIsSerializable = (value instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; out.severe("key: " + key.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); out.severe("value: " + value.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); if (value instanceof Object []) { printTree((Object []) value, out); } } }
public static void printState(Map state, Logger out) { Set<Map.Entry> entrySet = state.entrySet(); Object key, value; String keyIsSerializable, valueIsSerializable; for (Map.Entry cur : entrySet) { key = cur.getKey(); value = cur.getValue(); keyIsSerializable = (key instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; valueIsSerializable = (value instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; out.severe("key: " + key.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); out.severe("value: " + value.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); if (value instanceof Object []) { printTree((Object []) value, out); } } }
public static void printState(Map state, Logger out) { Set<Map.Entry> entrySet = state.entrySet(); Object key, value; String keyIsSerializable, valueIsSerializable; for (Map.Entry cur : entrySet) { key = cur.getKey(); value = cur.getValue(); keyIsSerializable = (key instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; valueIsSerializable = (value instanceof Serializable) ? "true" : "+_+_+_+FALSE+_+_+_+_"; out.severe("key: " + key.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); out.severe("value: " + value.toString() + " class:" + key.getClass() + " Serializable: " + keyIsSerializable); if (value instanceof Object []) { printTree((Object []) value, out); } } }
public static void printTree(Object [] root, Writer out) { if (null == root) { indentPrintln(out, "null"); return; } Object obj; for (int i = 0; i < root.length; i++) { obj = root[i]; if (null == obj) { indentPrintln(out, "null"); } else { if (obj.getClass().isArray()) { curDepth++; printTree((Object [])obj, out); curDepth--; } else { indentPrintln(out, obj.toString()); } } } }