@Override void readFields(DataInputStream in, int logVersion) throws IOException { AclEditLogProto p = AclEditLogProto.parseDelimitedFrom(in); if (p == null) { throw new IOException("Failed to read fields from SetAclOp"); } src = p.getSrc(); aclEntries = PBHelper.convertAclEntry(p.getEntriesList()); }
@Override public void writeFields(DataOutputStream out) throws IOException { AclEditLogProto.Builder b = AclEditLogProto.newBuilder(); if (src != null) b.setSrc(src); b.addAllEntries(PBHelper.convertAclEntryProto(aclEntries)); b.build().writeDelimitedTo(out); }
@Override void readFields(DataInputStream in, int logVersion) throws IOException { AclEditLogProto p = AclEditLogProto.parseDelimitedFrom((DataInputStream)in); if (p == null) { throw new IOException("Failed to read fields from SetAclOp"); } src = p.getSrc(); aclEntries = PBHelper.convertAclEntry(p.getEntriesList()); }