public Appendable append(CharSequence csq, int start, int end) throws IOException { // "no escape" path (pushing the "escape" path into a separate method) // to make this more "inlineable". int unescapedChunkStart = start; for (int i = start; i < end; i++) { char[] escaped = escape(csq.charAt(i)); if (escaped != null) { if (unescapedChunkStart < i) { out.append(csq, unescapedChunkStart, i); } outputChars(escaped); unescapedChunkStart = i + 1; } } if (unescapedChunkStart < end) { out.append(csq, unescapedChunkStart, end); } return this; }
public Appendable append(CharSequence csq, int start, int end) throws IOException { // "no escape" path (pushing the "escape" path into a separate method) // to make this more "inlineable". int unescapedChunkStart = start; for (int i = start; i < end; i++) { char[] escaped = escape(csq.charAt(i)); if (escaped != null) { if (unescapedChunkStart < i) { out.append(csq, unescapedChunkStart, i); } outputChars(escaped); unescapedChunkStart = i + 1; } } if (unescapedChunkStart < end) { out.append(csq, unescapedChunkStart, end); } return this; }
public Appendable append(CharSequence csq, int start, int end) throws IOException { // "no escape" path (pushing the "escape" path into a separate method) // to make this more "inlineable". int unescapedChunkStart = start; for (int i = start; i < end; i++) { char[] escaped = escape(csq.charAt(i)); if (escaped != null) { if (unescapedChunkStart < i) { out.append(csq, unescapedChunkStart, i); } outputChars(escaped); unescapedChunkStart = i + 1; } } if (unescapedChunkStart < end) { out.append(csq, unescapedChunkStart, end); } return this; }
public Appendable append(char c) throws IOException { char[] escaped = escape(c); if (escaped == null) { out.append(c); } else { outputChars(escaped); } return this; }
public Appendable append(char c) throws IOException { char[] escaped = escape(c); if (escaped == null) { out.append(c); } else { outputChars(escaped); } return this; }
public Appendable append(char c) throws IOException { char[] escaped = escape(c); if (escaped == null) { out.append(c); } else { outputChars(escaped); } return this; }