/* */ private void writeColorModel(DataOutput out, ColorModel colorModel) throws IOException {
/* 243 */ if ((colorModel instanceof DirectColorModel)) {
/* 244 */ out.writeInt(1);
/* 245 */ writeDirectColorModel(out, (DirectColorModel)colorModel);
/* */ } else {
/* 247 */ throw new SGIORuntimeException("Unsupported ColorModel " + colorModel.getClass().getName());
/* */ }
/* */ }