Exemplo n.º 1
0
 /**
  * @param stack
  * @param key
  * @param obj
  */
 private void attachPListObjToArrayParent(Stack<PListObject> stack, PListObject obj) {
   if (Log.isLoggable(TAG, Log.VERBOSE)) {
     Log.v(
         stringer.newBuilder().append(TAG).append("#attachPListObjToArrayParent").toString(),
         stringer
             .newBuilder()
             .append("obj-type|obj: ")
             .append(Constants.PIPE)
             .append(obj.getType())
             .append(Constants.PIPE)
             .append(obj.toString())
             .append(Constants.PIPE)
             .toString());
   }
   Array parent = (Array) stack.pop();
   parent.add(obj);
   stack.push(parent);
 }
Exemplo n.º 2
0
 /**
  * @param stack
  * @param key
  * @param obj
  */
 private void attachPListObjToDictParent(PListObject obj, java.lang.String key) {
   if (Log.isLoggable(TAG, Log.VERBOSE)) {
     Log.v(
         stringer.newBuilder().append(TAG).append("#attachPListObjToDictParent").toString(),
         stringer
             .newBuilder()
             .append("key|obj-type|obj: ")
             .append(key)
             .append(Constants.PIPE)
             .append(obj.getType())
             .append(Constants.PIPE)
             .append(obj.toString())
             .append(Constants.PIPE)
             .toString());
   }
   Dict parent = (Dict) stack.pop();
   parent.putConfig(key, obj);
   stack.push(parent);
 }