ZKTools { public static void printTree(ZooKeeper zk, String path, Writer writer, String lineSplitChar) throws Exception { String[] list = getTree(zk, path); Stat stat = new Stat(); for (String name : list) { byte[] value = zk.getData(name, false, stat); if (value == null) { writer.write(name + lineSplitChar); } else { writer.write(name + "[v." + stat.getVersion() + "]" + "[" + new String(value) + "]" + lineSplitChar); } } }  static void createPath(ZooKeeper zk, String path, CreateMode createMode, List<ACL> acl); static void printTree(ZooKeeper zk, String path, Writer writer, String lineSplitChar); static void deleteTree(ZooKeeper zk, String path); static String[] getTree(ZooKeeper zk, String path);  }
@Test public void printTree() { }