if(sb != null) { for (int i = sb.length() - 1; (i >= 0) && isLinearWhiteSpace(sb.charAt(i)); i--) { sb.deleteCharAt(i); } }
    public String readValue() throws IOException {        StringBuilder sb = null;        int next = read();        // Skip leading separators        while ((next != -1) && isValueSeparator(next)) {            next = read();        }        while ((next != -1) && !isValueSeparator(next)) {            if (sb == null)                sb = new StringBuilder();            sb.append((char) next);            next = read();        }        return (sb == null) ? null : sb.toString();    }