public Color parse(String value)
    {
        if (value.length() <= 1) {
            throw new ConversionException(USAGE);
        }

        if (value.charAt(0) == '#') {
            return parseHtml(value);
        } else if (value.indexOf(',') != -1) {
            return parseRGB(value);
        } else {
            throw new ConversionException(USAGE);
        }
    }
public Color parse ( String value ) { if ( value . length ( ) <= 1 ) { throw new ConversionException ( USAGE ) ; } if ( value . charAt ( 0 ) == '#' ) { return parseHtml ( value ) ; } else if ( value . indexOf ( ',' ) != - 1 ) { return parseRGB ( value ) ; } else { throw new ConversionException ( USAGE ) ; } }
Convert a String in {@link Color}.

@param value the String to parse
@return the {@link Color}