/** * Read the count from is, then read count Identifiables from is using the factory. Add each constructed * Identifiable to container. */ public static void readIdentifiableSequence(List<Object> container, IdentifiableFactoryFinder finder, InputStream istr) { int count = istr.read_long(); for (int ctr = 0; ctr < count; ctr++) { int id = istr.read_long(); Identifiable obj = finder.create(id, istr); container.add(obj); } }
/** * Read the count from is, then read count Identifiables from is using the factory. Add each constructed * Identifiable to container. */ public static void readIdentifiableSequence(List<Object> container, IdentifiableFactoryFinder finder, InputStream istr) { int count = istr.read_long(); for (int ctr = 0; ctr < count; ctr++) { int id = istr.read_long(); Identifiable obj = finder.create(id, istr); container.add(obj); } }