/** * Escape the separators in the key. * * @param key the key * @return the escaped key */ private static String escapeKey(String key) { StringBuffer newkey = new StringBuffer(); for (int i = 0; i < key.length(); i++) { char c = key.charAt(i); if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c)) { // escape the separator newkey.append('\\'); newkey.append(c); } else { newkey.append(c); } } return newkey.toString(); }
/** * Escape the separators in the key. * * @param key the key * @return the escaped key */ private static String escapeKey(String key) { StringBuffer newkey = new StringBuffer(); for (int i = 0; i < key.length(); i++) { char c = key.charAt(i); if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c)) { // escape the separator newkey.append('\\'); newkey.append(c); } else { newkey.append(c); } } return newkey.toString(); }
/** * Escape the separators in the key. * * @param key the key * @return the escaped key */ private static String escapeKey(String key) { StringBuffer newkey = new StringBuffer(); for (int i = 0; i < key.length(); i++) { char c = key.charAt(i); if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c)) { // escape the separator newkey.append('\\'); newkey.append(c); } else { newkey.append(c); } } return newkey.toString(); }
/** * Escape the separators in the key. * * @param key the key * @return the escaped key */ private static String escapeKey(String key) { StringBuffer newkey = new StringBuffer(); for (int i = 0; i < key.length(); i++) { char c = key.charAt(i); if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c)) { // escape the separator newkey.append('\\'); newkey.append(c); } else { newkey.append(c); } } return newkey.toString(); }
while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))
while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))
while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))
while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))