/** * Write all Identifiables that we contain to os. The total length must be written before this method is called. */ public static void writeIdentifiableSequence(List<Object> container, OutputStream os) { os.write_long(container.size()); Iterator<Object> iter = container.iterator(); while (iter.hasNext()) { Identifiable obj = (Identifiable) iter.next(); os.write_long(obj.getId()); obj.write(os); } }
/** * Write all Identifiables that we contain to os. The total length must be written before this method is called. */ public static void writeIdentifiableSequence(List<Object> container, OutputStream os) { os.write_long(container.size()); Iterator<Object> iter = container.iterator(); while (iter.hasNext()) { Identifiable obj = (Identifiable) iter.next(); os.write_long(obj.getId()); obj.write(os); } }