public void deserialize(InputArchive a_, String tag) throws java.io.IOException {
   a_.startRecord(tag);
   path = a_.readString("path");
   {
     Index vidx1 = a_.startVector("acl");
     if (vidx1 != null) {
       acl = new java.util.ArrayList<org.apache.zookeeper.data.ACL>();
       for (; !vidx1.done(); vidx1.incr()) {
         org.apache.zookeeper.data.ACL e1;
         e1 = new org.apache.zookeeper.data.ACL();
         a_.readRecord(e1, "e1");
         acl.add(e1);
       }
     }
     a_.endVector("acl");
   }
   version = a_.readInt("version");
   a_.endRecord(tag);
 }
Example #2
0
 public void deserialize(InputArchive a_, String tag) throws java.io.IOException {
   a_.startRecord(tag);
   path = a_.readString("path");
   data = a_.readBuffer("data");
   {
     Index vidx1 = a_.startVector("acl");
     if (vidx1 != null) {
       acl = new java.util.ArrayList<com.forest.ape.data.ACL>();
       for (; !vidx1.done(); vidx1.incr()) {
         com.forest.ape.data.ACL e1;
         e1 = new com.forest.ape.data.ACL();
         a_.readRecord(e1, "e1");
         acl.add(e1);
       }
     }
     a_.endVector("acl");
   }
   flags = a_.readInt("flags");
   a_.endRecord(tag);
 }
Example #3
0
 private void deserializeList(Map<Long, List<ACL>> longKeyMap, InputArchive ia)
     throws IOException {
   int i = ia.readInt("map");
   while (i > 0) {
     Long val = ia.readLong("long");
     if (aclIndex < val) {
       aclIndex = val;
     }
     List<ACL> aclList = new ArrayList<ACL>();
     Index j = ia.startVector("acls");
     while (!j.done()) {
       ACL acl = new ACL();
       acl.deserialize(ia, "acl");
       aclList.add(acl);
       j.incr();
     }
     longKeyMap.put(val, aclList);
     aclKeyMap.put(aclList, val);
     i--;
   }
 }