for (Iterator i = ll.iterator(); i.hasNext();) {
writeToDataOutputStream(i.next(), dos);
}
}
} else if (WritableToDataOutputStream.class.isAssignableFrom(type)) {
WritableToDataOutputStream b = (WritableToDataOutputStream) object;
b.writeToDataOutputStream(dos);
} else {
throw new RuntimeException("Unrecognised field type: " + type);
}
}