public static void enc(char[] in, int start, int length, StringBuffer out) {
        for (int i = start; i < length + start; i++) {
            enc(in[i], out);
        }
    }
public static void enc ( char [ ] in , int start , int length , StringBuffer out ) { for ( int i = start ; i < length + start ; i ++ ) { enc ( in [ i ] , out ) ; } }
Prints an XML-appropriate encoding of the given range of characters to
the given Writer.

@param in
The char buffer to read from.
@param start
The starting index.
@param length
The number of characters in the range.
@param out
The Appendable to write to.