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); }
public void absorbTheStreamBody() { if (mark == 0) { items.clear(); items.addAll(Arrays.asList(body.theStreamBody())); } }