private void populatePaletteEntry(final PaletteEntry paletteEntry, final String key, final String color) throws ImagingException {
        switch (key) {
        case "m":
            paletteEntry.monoArgb = parseColor(color);
            paletteEntry.haveMono = true;
            break;
        case "g4":
            paletteEntry.gray4LevelArgb = parseColor(color);
            paletteEntry.haveGray4Level = true;
            break;
        case "g":
            paletteEntry.grayArgb = parseColor(color);
            paletteEntry.haveGray = true;
            break;
        case "s":
        case "c":
            paletteEntry.colorArgb = parseColor(color);
            paletteEntry.haveColor = true;
            break;
        default:
            break;
        }
    }
Constructs a new instance with the big-endian byte order.
src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java