示例#1
0
 public void updateTheStreamBody() {
   final int size = items.size();
   StreamItem[] theNewStreamBody = new StreamItem[size];
   int i = 0;
   for (StreamItem item : items) {
     theNewStreamBody[i] = item;
     i++;
   }
   body.theStreamBody(theNewStreamBody);
 }
示例#2
0
 public void absorbTheStreamBody() {
   if (mark == 0) {
     items.clear();
     items.addAll(Arrays.asList(body.theStreamBody()));
   }
 }