/** Write a PlanetObject to a stream. * @param outputStream is the output stream. * @param object is the object to write. */ public static void writePlanetObject(final OutputStream outputStream, final PlanetObject object) throws IOException { object.getPlanetModel().write(outputStream); writeObject(outputStream, object); }