code: public static IndexColorModel readColorTable(final DataInput pStream, final int pPixelSize) throws IOException {
          // TODO: Do we need to support these?
          /*int seed = */pStream.readInt();
          /*int flags = */pStream.readUnsignedShort();
          int size = pStream.readUnsignedShort() + 1; // data is size - 1
  
          int[] colors = new int[size];
  
          for (int i = 0; i < size; i++) {
              // Read ColorSpec records
              /*int index = */pStream.readUnsignedShort();
              Color color = readRGBColor(pStream);
              colors[i] = color.getRGB();
          }
  
          return new IndexColorModel(pPixelSize, size, colors, 0, false, -1, DataBuffer.TYPE_BYTE);
      }
docs: /*
  http://developer.apple.com/DOCUMENTATION/mac/QuickDraw/QuickDraw-269.html#HEADING269-11
  ColorSpec      =
  RECORD
  value:   Integer;    {index or other value}
  rgb:     RGBColor;   {true color}
  END;
  
  ColorTable     =
  RECORD
  ctSeed:  LongInt;    {unique identifier from table}
  ctFlags: Integer;    {contains flags describing the ctTable field; }
  { clear for a PixMap record}
  ctSize:  Integer;    {number of entries in the next field minus 1}
  ctTable: cSpecArray; {an array of ColorSpec records}
  END;