public final void end() { final Iterator<Body> i = mBodies.iterator(); while (i.hasNext()) { final Body body = i.next(); if (!body.isStopped()) { body.stop(); } i.remove(); } }
public final void write(final String data) { final Iterator<Body> i = mBodies.iterator(); while (i.hasNext()) { final Body body = i.next(); if (body.isStopped()) { i.remove(); } else { body.writeEventData(data); } } }