122123124125126127128129130131132
if (p.startsWith(pathFilter)) { addedNodes.put(after, p); buff.tag('+'). key(p).object(); toJson(buff, after, depth); buff.endObject().newline(); } } @Override public void childNodeDeleted(String name, NodeState before) {
220221222223224225226227228229230
String p = PathUtils.concat(getCurrentPath(), name); if (p.startsWith(pathFilter)) { buff.tag('+'). key(p).object(); toJson(buff, after, depth); buff.endObject().newline(); } } @Override public void childNodeDeleted(String name, NodeState before) {
154155156157158159160161162163164
w.key(LENGTHS_KEY).value(buff.toString()); } for (Entry<String, String> e : map.entrySet()) { w.key(e.getKey()).encodedValue(e.getValue()); } w.endObject(); jsop = w.toString(); start = 0; } return jsop.substring(start); }
189190191192193194195196197198199
JsopWriter json = new JsopBuilder(); json.object(); for (int i = 0; i < size; i++) { json.key(names[i]).value(children[i].toString()); } json.endObject(); return json.toString(); } @Override public NodeList createClone(NodeMap map, long revId) {
123124125126127128129130131132133
jsop.key("children").array(); for (String d : children) { jsop.value(d); } jsop.endArray(); jsop.endObject(); jsop.newline(); tree.buffer(jsop.toString()); } void delete(int pos) {
603604605606607608609610611612613
json.key(DESCENDANT_COUNT).value(descendantCount); } } childNodes.append(json, map); } json.endObject(); if (!inline) { json.tag(';'); } return json.toString(); }
8384858687888990919293
jsop.key("values").array(); for (String v : values) { jsop.value(v); } jsop.endArray(); jsop.endObject(); jsop.newline(); tree.buffer(jsop.toString()); } }
316317318319320321322323324325326
in.close(); String name = f.substring(parent.length()); listing.key(name).value(id); listing.newline(); } listing.endObject(); String l = listing.toString(); String id = store.writeBlob(new ByteArrayInputStream(l.getBytes("UTF-8"))); return id; }
297298299300301302303304305306307
if (nodeState == null) { return null; } JsopBuilder buf = new JsopBuilder().object(); toJson(buf, nodeState, depth, (int) offset, count, true); return buf.endObject().toString(); } catch (Exception e) { throw new MicroKernelException(e); } }
5455565758596061626364
if (before == null) { if (after != null) { buff.tag('+').key(path).object(); toJson(buff, after); return buff.endObject().newline().toString(); } else { throw new Exception("path doesn't exist in the specified revisions: " + path); } } else if (after == null) { buff.tag('-');