private State skipCommaSpaces2(State state) throws IOException {
        wsp1: for (;;) {
            switch (state.current) {
                default:
                    break wsp1;
                case 0x20:
                case 0x9:
                case 0xD:
                case 0xA:
                    break;
            }
            state.current = state.reader.read();
            state = appendToContext(state);
        }

        if (state.current != ',') {
            state.skipped = false; // no comma.
            return state;
        }

        wsp2: for (;;) {
            switch (state.current = state.reader.read()) {
                default:
                    state = appendToContext(state);
                    break wsp2;
                case 0x20:
                case 0x9:
                case 0xD:
                case 0xA:
                    state = appendToContext(state);
                    break;
            }
        }
        state.skipped = true; // had comma
        return state;
    }
Skips the whitespaces and an optional comma.
src/nu/validator/datatype/SvgPathData.java