public int[] getPalette() {
            if (!paletteSet) {
                throw new IllegalStateException(PropertyUtil.getString("PNGEncodeParam3"));
            }
            return (int[])(palette.clone());
        }
Returns the current RGB palette.

<p> If the palette has not previously been set, or has been
unset, an <code>IllegalStateException</code> will be thrown.

@throws IllegalStateException if the palette is not set.

@return An array of <code>int</code>s.
plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/png/PNGEncodeParam.java