result.append(ch, offset, i - offset).append(QUOTE);
result.append(ch, offset, i - offset).append(QUOT);
    private String escapeString(String value) {	final char[] ch = value.toCharArray();	final int limit = ch.length;	StringBuffer result = new StringBuffer();		int offset = 0;	for (int i = 0; i < limit; i++) {	    switch (ch[i]) {	    case '&':		result.append(ch, offset, i - offset).append(AMP);		offset = i + 1;		break;	    case '"':		result.append(ch, offset, i - offset).append(QUOTE);		offset = i + 1;		break;	    case '<':		result.append(ch, offset, i - offset).append(LT);		offset = i + 1;		break;	    case '>':		result.append(ch, offset, i - offset).append(GT);		offset = i + 1;		break;	    case '\n':		result.append(ch, offset, i - offset).append(CRLF);		offset = i + 1;		break;	    }	}	if (offset < limit) {	    result.append(ch, offset, limit - offset);	}	return result.toString();    }