encodeMetacharacters (0, this.length());
while (i < start) newBuf.append (chars[i++]);  while (i < end) newBuf.append (encodeOneMetacharacter (chars[i++], scratch));  while (i < chars.length) newBuf.append (chars[i++]);
    public void encodeMetacharacters()     {        try        {            encodeMetacharacters (0, this.length());        }        catch (StringIndexOutOfBoundsException ex)        {            // Should never happen        }    }