public String parseKey() { skipWhitespaces(); final StringBuffer buf = new StringBuffer(); while (true) { nextToken(); if (type != Type.CHAR) { if (buf.length() > 0) { throw new RuntimeException(createMessage(ERROR_INVALID_KEY, buf.toString())); } return null; } if (cval == '=') { break; } else { buf.append(cval); } } return buf.toString(); }
public String parseValue() skipWhitespaces(); nextToken(); if (type != Type.CHAR || cval == pairsSeparatorChar) { buf.append(cval); } else if (Character.isWhitespace(cval) == true) { skipWhitespaces(); nextToken(); if (type != Type.CHAR || cval == pairsSeparatorChar) {