commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject svn commit: r1012767 [10/39] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/class-use/ apidocs/org/apache/commons/text/diff/ apidocs/org/apache/commons/text/di...
Date Tue, 23 May 2017 13:12:45 GMT
Modified: websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrBuilder.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrBuilder.html (original)
+++ websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrBuilder.html Tue May 23 13:12:41 2017
@@ -480,7 +480,7 @@
 <span class="sourceLineNo">472</span>     */<a name="line.472"></a>
 <span class="sourceLineNo">473</span>    public StrBuilder appendNewLine() {<a name="line.473"></a>
 <span class="sourceLineNo">474</span>        if (newLine == null)  {<a name="line.474"></a>
-<span class="sourceLineNo">475</span>            append(System.getProperty("line.separator"));<a name="line.475"></a>
+<span class="sourceLineNo">475</span>            append(System.lineSeparator());<a name="line.475"></a>
 <span class="sourceLineNo">476</span>            return this;<a name="line.476"></a>
 <span class="sourceLineNo">477</span>        }<a name="line.477"></a>
 <span class="sourceLineNo">478</span>        return append(newLine);<a name="line.478"></a>
@@ -2623,7 +2623,7 @@
 <span class="sourceLineNo">2615</span>     * changed on the tokenizer class, before retrieving the tokens.<a name="line.2615"></a>
 <span class="sourceLineNo">2616</span>     * &lt;p&gt;<a name="line.2616"></a>
 <span class="sourceLineNo">2617</span>     * The returned tokenizer is linked to this builder. You may intermix<a name="line.2617"></a>
-<span class="sourceLineNo">2618</span>     * calls to the buider and tokenizer within certain limits, however<a name="line.2618"></a>
+<span class="sourceLineNo">2618</span>     * calls to the builder and tokenizer within certain limits, however<a name="line.2618"></a>
 <span class="sourceLineNo">2619</span>     * there is no synchronization. Once the tokenizer has been used once,<a name="line.2619"></a>
 <span class="sourceLineNo">2620</span>     * it must be {@link StrTokenizer#reset() reset} to pickup the latest<a name="line.2620"></a>
 <span class="sourceLineNo">2621</span>     * changes in the builder. For example:<a name="line.2621"></a>
@@ -2724,380 +2724,349 @@
 <span class="sourceLineNo">2716</span>        }<a name="line.2716"></a>
 <span class="sourceLineNo">2717</span>    }<a name="line.2717"></a>
 <span class="sourceLineNo">2718</span><a name="line.2718"></a>
-<span class="sourceLineNo">2719</span>    //-----------------------------------------------------------------------<a name="line.2719"></a>
-<span class="sourceLineNo">2720</span>//    /**<a name="line.2720"></a>
-<span class="sourceLineNo">2721</span>//     * Gets a String version of the string builder by calling the internal<a name="line.2721"></a>
-<span class="sourceLineNo">2722</span>//     * constructor of String by reflection.<a name="line.2722"></a>
-<span class="sourceLineNo">2723</span>//     * &lt;p&gt;<a name="line.2723"></a>
-<span class="sourceLineNo">2724</span>//     * WARNING: You must not use the StrBuilder after calling this method<a name="line.2724"></a>
-<span class="sourceLineNo">2725</span>//     * as the buffer is now shared with the String object. To ensure this,<a name="line.2725"></a>
-<span class="sourceLineNo">2726</span>//     * the internal character array is set to null, so you will get<a name="line.2726"></a>
-<span class="sourceLineNo">2727</span>//     * NullPointerExceptions on all method calls.<a name="line.2727"></a>
-<span class="sourceLineNo">2728</span>//     *<a name="line.2728"></a>
-<span class="sourceLineNo">2729</span>//     * @return the builder as a String<a name="line.2729"></a>
-<span class="sourceLineNo">2730</span>//     */<a name="line.2730"></a>
-<span class="sourceLineNo">2731</span>//    public String toSharedString() {<a name="line.2731"></a>
-<span class="sourceLineNo">2732</span>//        try {<a name="line.2732"></a>
-<span class="sourceLineNo">2733</span>//            Constructor con = String.class.getDeclaredConstructor(<a name="line.2733"></a>
-<span class="sourceLineNo">2734</span>//                new Class[] {int.class, int.class, char[].class});<a name="line.2734"></a>
-<span class="sourceLineNo">2735</span>//            con.setAccessible(true);<a name="line.2735"></a>
-<span class="sourceLineNo">2736</span>//            char[] buffer = buf;<a name="line.2736"></a>
-<span class="sourceLineNo">2737</span>//            buf = null;<a name="line.2737"></a>
-<span class="sourceLineNo">2738</span>//            size = -1;<a name="line.2738"></a>
-<span class="sourceLineNo">2739</span>//            nullText = null;<a name="line.2739"></a>
-<span class="sourceLineNo">2740</span>//            return (String) con.newInstance(<a name="line.2740"></a>
-<span class="sourceLineNo">2741</span>//                new Object[] {Integer.valueOf(0), Integer.valueOf(size), buffer});<a name="line.2741"></a>
-<span class="sourceLineNo">2742</span>//<a name="line.2742"></a>
-<span class="sourceLineNo">2743</span>//        } catch (Exception ex) {<a name="line.2743"></a>
-<span class="sourceLineNo">2744</span>//            ex.printStackTrace();<a name="line.2744"></a>
-<span class="sourceLineNo">2745</span>//            throw new UnsupportedOperationException("StrBuilder.toSharedString is unsupported: " + ex.getMessage());<a name="line.2745"></a>
-<span class="sourceLineNo">2746</span>//        }<a name="line.2746"></a>
-<span class="sourceLineNo">2747</span>//    }<a name="line.2747"></a>
-<span class="sourceLineNo">2748</span><a name="line.2748"></a>
-<span class="sourceLineNo">2749</span>    //-----------------------------------------------------------------------<a name="line.2749"></a>
-<span class="sourceLineNo">2750</span>    /**<a name="line.2750"></a>
-<span class="sourceLineNo">2751</span>     * Checks the contents of this builder against another to see if they<a name="line.2751"></a>
-<span class="sourceLineNo">2752</span>     * contain the same character content ignoring case.<a name="line.2752"></a>
-<span class="sourceLineNo">2753</span>     *<a name="line.2753"></a>
-<span class="sourceLineNo">2754</span>     * @param other  the object to check, null returns false<a name="line.2754"></a>
-<span class="sourceLineNo">2755</span>     * @return true if the builders contain the same characters in the same order<a name="line.2755"></a>
-<span class="sourceLineNo">2756</span>     */<a name="line.2756"></a>
-<span class="sourceLineNo">2757</span>    public boolean equalsIgnoreCase(final StrBuilder other) {<a name="line.2757"></a>
-<span class="sourceLineNo">2758</span>        if (this == other) {<a name="line.2758"></a>
-<span class="sourceLineNo">2759</span>            return true;<a name="line.2759"></a>
-<span class="sourceLineNo">2760</span>        }<a name="line.2760"></a>
-<span class="sourceLineNo">2761</span>        if (this.size != other.size) {<a name="line.2761"></a>
-<span class="sourceLineNo">2762</span>            return false;<a name="line.2762"></a>
-<span class="sourceLineNo">2763</span>        }<a name="line.2763"></a>
-<span class="sourceLineNo">2764</span>        final char[] thisBuf = this.buffer;<a name="line.2764"></a>
-<span class="sourceLineNo">2765</span>        final char[] otherBuf = other.buffer;<a name="line.2765"></a>
-<span class="sourceLineNo">2766</span>        for (int i = size - 1; i &gt;= 0; i--) {<a name="line.2766"></a>
-<span class="sourceLineNo">2767</span>            final char c1 = thisBuf[i];<a name="line.2767"></a>
-<span class="sourceLineNo">2768</span>            final char c2 = otherBuf[i];<a name="line.2768"></a>
-<span class="sourceLineNo">2769</span>            if (c1 != c2 &amp;&amp; Character.toUpperCase(c1) != Character.toUpperCase(c2)) {<a name="line.2769"></a>
-<span class="sourceLineNo">2770</span>                return false;<a name="line.2770"></a>
-<span class="sourceLineNo">2771</span>            }<a name="line.2771"></a>
-<span class="sourceLineNo">2772</span>        }<a name="line.2772"></a>
-<span class="sourceLineNo">2773</span>        return true;<a name="line.2773"></a>
-<span class="sourceLineNo">2774</span>    }<a name="line.2774"></a>
-<span class="sourceLineNo">2775</span><a name="line.2775"></a>
-<span class="sourceLineNo">2776</span>    /**<a name="line.2776"></a>
-<span class="sourceLineNo">2777</span>     * Checks the contents of this builder against another to see if they<a name="line.2777"></a>
-<span class="sourceLineNo">2778</span>     * contain the same character content.<a name="line.2778"></a>
-<span class="sourceLineNo">2779</span>     *<a name="line.2779"></a>
-<span class="sourceLineNo">2780</span>     * @param other  the object to check, null returns false<a name="line.2780"></a>
-<span class="sourceLineNo">2781</span>     * @return true if the builders contain the same characters in the same order<a name="line.2781"></a>
-<span class="sourceLineNo">2782</span>     */<a name="line.2782"></a>
-<span class="sourceLineNo">2783</span>    public boolean equals(final StrBuilder other) {<a name="line.2783"></a>
-<span class="sourceLineNo">2784</span>        if (this == other) {<a name="line.2784"></a>
-<span class="sourceLineNo">2785</span>            return true;<a name="line.2785"></a>
-<span class="sourceLineNo">2786</span>        }<a name="line.2786"></a>
-<span class="sourceLineNo">2787</span>        if (other == null) {<a name="line.2787"></a>
-<span class="sourceLineNo">2788</span>            return false;<a name="line.2788"></a>
-<span class="sourceLineNo">2789</span>        }<a name="line.2789"></a>
-<span class="sourceLineNo">2790</span>        if (this.size != other.size) {<a name="line.2790"></a>
-<span class="sourceLineNo">2791</span>            return false;<a name="line.2791"></a>
-<span class="sourceLineNo">2792</span>        }<a name="line.2792"></a>
-<span class="sourceLineNo">2793</span>        final char[] thisBuf = this.buffer;<a name="line.2793"></a>
-<span class="sourceLineNo">2794</span>        final char[] otherBuf = other.buffer;<a name="line.2794"></a>
-<span class="sourceLineNo">2795</span>        for (int i = size - 1; i &gt;= 0; i--) {<a name="line.2795"></a>
-<span class="sourceLineNo">2796</span>            if (thisBuf[i] != otherBuf[i]) {<a name="line.2796"></a>
-<span class="sourceLineNo">2797</span>                return false;<a name="line.2797"></a>
-<span class="sourceLineNo">2798</span>            }<a name="line.2798"></a>
-<span class="sourceLineNo">2799</span>        }<a name="line.2799"></a>
-<span class="sourceLineNo">2800</span>        return true;<a name="line.2800"></a>
-<span class="sourceLineNo">2801</span>    }<a name="line.2801"></a>
-<span class="sourceLineNo">2802</span><a name="line.2802"></a>
-<span class="sourceLineNo">2803</span>    /**<a name="line.2803"></a>
-<span class="sourceLineNo">2804</span>     * Checks the contents of this builder against another to see if they<a name="line.2804"></a>
-<span class="sourceLineNo">2805</span>     * contain the same character content.<a name="line.2805"></a>
-<span class="sourceLineNo">2806</span>     *<a name="line.2806"></a>
-<span class="sourceLineNo">2807</span>     * @param obj  the object to check, null returns false<a name="line.2807"></a>
-<span class="sourceLineNo">2808</span>     * @return true if the builders contain the same characters in the same order<a name="line.2808"></a>
+<span class="sourceLineNo">2719</span>    /**<a name="line.2719"></a>
+<span class="sourceLineNo">2720</span>     * Checks the contents of this builder against another to see if they<a name="line.2720"></a>
+<span class="sourceLineNo">2721</span>     * contain the same character content ignoring case.<a name="line.2721"></a>
+<span class="sourceLineNo">2722</span>     *<a name="line.2722"></a>
+<span class="sourceLineNo">2723</span>     * @param other  the object to check, null returns false<a name="line.2723"></a>
+<span class="sourceLineNo">2724</span>     * @return true if the builders contain the same characters in the same order<a name="line.2724"></a>
+<span class="sourceLineNo">2725</span>     */<a name="line.2725"></a>
+<span class="sourceLineNo">2726</span>    public boolean equalsIgnoreCase(final StrBuilder other) {<a name="line.2726"></a>
+<span class="sourceLineNo">2727</span>        if (this == other) {<a name="line.2727"></a>
+<span class="sourceLineNo">2728</span>            return true;<a name="line.2728"></a>
+<span class="sourceLineNo">2729</span>        }<a name="line.2729"></a>
+<span class="sourceLineNo">2730</span>        if (this.size != other.size) {<a name="line.2730"></a>
+<span class="sourceLineNo">2731</span>            return false;<a name="line.2731"></a>
+<span class="sourceLineNo">2732</span>        }<a name="line.2732"></a>
+<span class="sourceLineNo">2733</span>        final char[] thisBuf = this.buffer;<a name="line.2733"></a>
+<span class="sourceLineNo">2734</span>        final char[] otherBuf = other.buffer;<a name="line.2734"></a>
+<span class="sourceLineNo">2735</span>        for (int i = size - 1; i &gt;= 0; i--) {<a name="line.2735"></a>
+<span class="sourceLineNo">2736</span>            final char c1 = thisBuf[i];<a name="line.2736"></a>
+<span class="sourceLineNo">2737</span>            final char c2 = otherBuf[i];<a name="line.2737"></a>
+<span class="sourceLineNo">2738</span>            if (c1 != c2 &amp;&amp; Character.toUpperCase(c1) != Character.toUpperCase(c2)) {<a name="line.2738"></a>
+<span class="sourceLineNo">2739</span>                return false;<a name="line.2739"></a>
+<span class="sourceLineNo">2740</span>            }<a name="line.2740"></a>
+<span class="sourceLineNo">2741</span>        }<a name="line.2741"></a>
+<span class="sourceLineNo">2742</span>        return true;<a name="line.2742"></a>
+<span class="sourceLineNo">2743</span>    }<a name="line.2743"></a>
+<span class="sourceLineNo">2744</span><a name="line.2744"></a>
+<span class="sourceLineNo">2745</span>    /**<a name="line.2745"></a>
+<span class="sourceLineNo">2746</span>     * Checks the contents of this builder against another to see if they<a name="line.2746"></a>
+<span class="sourceLineNo">2747</span>     * contain the same character content.<a name="line.2747"></a>
+<span class="sourceLineNo">2748</span>     *<a name="line.2748"></a>
+<span class="sourceLineNo">2749</span>     * @param other  the object to check, null returns false<a name="line.2749"></a>
+<span class="sourceLineNo">2750</span>     * @return true if the builders contain the same characters in the same order<a name="line.2750"></a>
+<span class="sourceLineNo">2751</span>     */<a name="line.2751"></a>
+<span class="sourceLineNo">2752</span>    public boolean equals(final StrBuilder other) {<a name="line.2752"></a>
+<span class="sourceLineNo">2753</span>        if (this == other) {<a name="line.2753"></a>
+<span class="sourceLineNo">2754</span>            return true;<a name="line.2754"></a>
+<span class="sourceLineNo">2755</span>        }<a name="line.2755"></a>
+<span class="sourceLineNo">2756</span>        if (other == null) {<a name="line.2756"></a>
+<span class="sourceLineNo">2757</span>            return false;<a name="line.2757"></a>
+<span class="sourceLineNo">2758</span>        }<a name="line.2758"></a>
+<span class="sourceLineNo">2759</span>        if (this.size != other.size) {<a name="line.2759"></a>
+<span class="sourceLineNo">2760</span>            return false;<a name="line.2760"></a>
+<span class="sourceLineNo">2761</span>        }<a name="line.2761"></a>
+<span class="sourceLineNo">2762</span>        final char[] thisBuf = this.buffer;<a name="line.2762"></a>
+<span class="sourceLineNo">2763</span>        final char[] otherBuf = other.buffer;<a name="line.2763"></a>
+<span class="sourceLineNo">2764</span>        for (int i = size - 1; i &gt;= 0; i--) {<a name="line.2764"></a>
+<span class="sourceLineNo">2765</span>            if (thisBuf[i] != otherBuf[i]) {<a name="line.2765"></a>
+<span class="sourceLineNo">2766</span>                return false;<a name="line.2766"></a>
+<span class="sourceLineNo">2767</span>            }<a name="line.2767"></a>
+<span class="sourceLineNo">2768</span>        }<a name="line.2768"></a>
+<span class="sourceLineNo">2769</span>        return true;<a name="line.2769"></a>
+<span class="sourceLineNo">2770</span>    }<a name="line.2770"></a>
+<span class="sourceLineNo">2771</span><a name="line.2771"></a>
+<span class="sourceLineNo">2772</span>    /**<a name="line.2772"></a>
+<span class="sourceLineNo">2773</span>     * Checks the contents of this builder against another to see if they<a name="line.2773"></a>
+<span class="sourceLineNo">2774</span>     * contain the same character content.<a name="line.2774"></a>
+<span class="sourceLineNo">2775</span>     *<a name="line.2775"></a>
+<span class="sourceLineNo">2776</span>     * @param obj  the object to check, null returns false<a name="line.2776"></a>
+<span class="sourceLineNo">2777</span>     * @return true if the builders contain the same characters in the same order<a name="line.2777"></a>
+<span class="sourceLineNo">2778</span>     */<a name="line.2778"></a>
+<span class="sourceLineNo">2779</span>    @Override<a name="line.2779"></a>
+<span class="sourceLineNo">2780</span>    public boolean equals(final Object obj) {<a name="line.2780"></a>
+<span class="sourceLineNo">2781</span>        return obj instanceof StrBuilder<a name="line.2781"></a>
+<span class="sourceLineNo">2782</span>                &amp;&amp; equals((StrBuilder) obj);<a name="line.2782"></a>
+<span class="sourceLineNo">2783</span>    }<a name="line.2783"></a>
+<span class="sourceLineNo">2784</span><a name="line.2784"></a>
+<span class="sourceLineNo">2785</span>    /**<a name="line.2785"></a>
+<span class="sourceLineNo">2786</span>     * Gets a suitable hash code for this builder.<a name="line.2786"></a>
+<span class="sourceLineNo">2787</span>     *<a name="line.2787"></a>
+<span class="sourceLineNo">2788</span>     * @return a hash code<a name="line.2788"></a>
+<span class="sourceLineNo">2789</span>     */<a name="line.2789"></a>
+<span class="sourceLineNo">2790</span>    @Override<a name="line.2790"></a>
+<span class="sourceLineNo">2791</span>    public int hashCode() {<a name="line.2791"></a>
+<span class="sourceLineNo">2792</span>        final char[] buf = buffer;<a name="line.2792"></a>
+<span class="sourceLineNo">2793</span>        int hash = 0;<a name="line.2793"></a>
+<span class="sourceLineNo">2794</span>        for (int i = size - 1; i &gt;= 0; i--) {<a name="line.2794"></a>
+<span class="sourceLineNo">2795</span>            hash = 31 * hash + buf[i];<a name="line.2795"></a>
+<span class="sourceLineNo">2796</span>        }<a name="line.2796"></a>
+<span class="sourceLineNo">2797</span>        return hash;<a name="line.2797"></a>
+<span class="sourceLineNo">2798</span>    }<a name="line.2798"></a>
+<span class="sourceLineNo">2799</span><a name="line.2799"></a>
+<span class="sourceLineNo">2800</span>    //-----------------------------------------------------------------------<a name="line.2800"></a>
+<span class="sourceLineNo">2801</span>    /**<a name="line.2801"></a>
+<span class="sourceLineNo">2802</span>     * Gets a String version of the string builder, creating a new instance<a name="line.2802"></a>
+<span class="sourceLineNo">2803</span>     * each time the method is called.<a name="line.2803"></a>
+<span class="sourceLineNo">2804</span>     * &lt;p&gt;<a name="line.2804"></a>
+<span class="sourceLineNo">2805</span>     * Note that unlike StringBuffer, the string version returned is<a name="line.2805"></a>
+<span class="sourceLineNo">2806</span>     * independent of the string builder.<a name="line.2806"></a>
+<span class="sourceLineNo">2807</span>     *<a name="line.2807"></a>
+<span class="sourceLineNo">2808</span>     * @return the builder as a String<a name="line.2808"></a>
 <span class="sourceLineNo">2809</span>     */<a name="line.2809"></a>
 <span class="sourceLineNo">2810</span>    @Override<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>    public boolean equals(final Object obj) {<a name="line.2811"></a>
-<span class="sourceLineNo">2812</span>        return obj instanceof StrBuilder<a name="line.2812"></a>
-<span class="sourceLineNo">2813</span>                &amp;&amp; equals((StrBuilder) obj);<a name="line.2813"></a>
-<span class="sourceLineNo">2814</span>    }<a name="line.2814"></a>
-<span class="sourceLineNo">2815</span><a name="line.2815"></a>
-<span class="sourceLineNo">2816</span>    /**<a name="line.2816"></a>
-<span class="sourceLineNo">2817</span>     * Gets a suitable hash code for this builder.<a name="line.2817"></a>
+<span class="sourceLineNo">2811</span>    public String toString() {<a name="line.2811"></a>
+<span class="sourceLineNo">2812</span>        return new String(buffer, 0, size);<a name="line.2812"></a>
+<span class="sourceLineNo">2813</span>    }<a name="line.2813"></a>
+<span class="sourceLineNo">2814</span><a name="line.2814"></a>
+<span class="sourceLineNo">2815</span>    /**<a name="line.2815"></a>
+<span class="sourceLineNo">2816</span>     * Gets a StringBuffer version of the string builder, creating a<a name="line.2816"></a>
+<span class="sourceLineNo">2817</span>     * new instance each time the method is called.<a name="line.2817"></a>
 <span class="sourceLineNo">2818</span>     *<a name="line.2818"></a>
-<span class="sourceLineNo">2819</span>     * @return a hash code<a name="line.2819"></a>
+<span class="sourceLineNo">2819</span>     * @return the builder as a StringBuffer<a name="line.2819"></a>
 <span class="sourceLineNo">2820</span>     */<a name="line.2820"></a>
-<span class="sourceLineNo">2821</span>    @Override<a name="line.2821"></a>
-<span class="sourceLineNo">2822</span>    public int hashCode() {<a name="line.2822"></a>
-<span class="sourceLineNo">2823</span>        final char[] buf = buffer;<a name="line.2823"></a>
-<span class="sourceLineNo">2824</span>        int hash = 0;<a name="line.2824"></a>
-<span class="sourceLineNo">2825</span>        for (int i = size - 1; i &gt;= 0; i--) {<a name="line.2825"></a>
-<span class="sourceLineNo">2826</span>            hash = 31 * hash + buf[i];<a name="line.2826"></a>
-<span class="sourceLineNo">2827</span>        }<a name="line.2827"></a>
-<span class="sourceLineNo">2828</span>        return hash;<a name="line.2828"></a>
-<span class="sourceLineNo">2829</span>    }<a name="line.2829"></a>
-<span class="sourceLineNo">2830</span><a name="line.2830"></a>
-<span class="sourceLineNo">2831</span>    //-----------------------------------------------------------------------<a name="line.2831"></a>
-<span class="sourceLineNo">2832</span>    /**<a name="line.2832"></a>
-<span class="sourceLineNo">2833</span>     * Gets a String version of the string builder, creating a new instance<a name="line.2833"></a>
-<span class="sourceLineNo">2834</span>     * each time the method is called.<a name="line.2834"></a>
-<span class="sourceLineNo">2835</span>     * &lt;p&gt;<a name="line.2835"></a>
-<span class="sourceLineNo">2836</span>     * Note that unlike StringBuffer, the string version returned is<a name="line.2836"></a>
-<span class="sourceLineNo">2837</span>     * independent of the string builder.<a name="line.2837"></a>
-<span class="sourceLineNo">2838</span>     *<a name="line.2838"></a>
-<span class="sourceLineNo">2839</span>     * @return the builder as a String<a name="line.2839"></a>
-<span class="sourceLineNo">2840</span>     */<a name="line.2840"></a>
-<span class="sourceLineNo">2841</span>    @Override<a name="line.2841"></a>
-<span class="sourceLineNo">2842</span>    public String toString() {<a name="line.2842"></a>
-<span class="sourceLineNo">2843</span>        return new String(buffer, 0, size);<a name="line.2843"></a>
-<span class="sourceLineNo">2844</span>    }<a name="line.2844"></a>
-<span class="sourceLineNo">2845</span><a name="line.2845"></a>
+<span class="sourceLineNo">2821</span>    public StringBuffer toStringBuffer() {<a name="line.2821"></a>
+<span class="sourceLineNo">2822</span>        return new StringBuffer(size).append(buffer, 0, size);<a name="line.2822"></a>
+<span class="sourceLineNo">2823</span>    }<a name="line.2823"></a>
+<span class="sourceLineNo">2824</span><a name="line.2824"></a>
+<span class="sourceLineNo">2825</span>    /**<a name="line.2825"></a>
+<span class="sourceLineNo">2826</span>     * Gets a StringBuilder version of the string builder, creating a<a name="line.2826"></a>
+<span class="sourceLineNo">2827</span>     * new instance each time the method is called.<a name="line.2827"></a>
+<span class="sourceLineNo">2828</span>     *<a name="line.2828"></a>
+<span class="sourceLineNo">2829</span>     * @return the builder as a StringBuilder<a name="line.2829"></a>
+<span class="sourceLineNo">2830</span>     */<a name="line.2830"></a>
+<span class="sourceLineNo">2831</span>    public StringBuilder toStringBuilder() {<a name="line.2831"></a>
+<span class="sourceLineNo">2832</span>        return new StringBuilder(size).append(buffer, 0, size);<a name="line.2832"></a>
+<span class="sourceLineNo">2833</span>    }<a name="line.2833"></a>
+<span class="sourceLineNo">2834</span><a name="line.2834"></a>
+<span class="sourceLineNo">2835</span>    /**<a name="line.2835"></a>
+<span class="sourceLineNo">2836</span>     * Implement the {@link Builder} interface.<a name="line.2836"></a>
+<span class="sourceLineNo">2837</span>     * @return the builder as a String<a name="line.2837"></a>
+<span class="sourceLineNo">2838</span>     * @see #toString()<a name="line.2838"></a>
+<span class="sourceLineNo">2839</span>     */<a name="line.2839"></a>
+<span class="sourceLineNo">2840</span>    @Override<a name="line.2840"></a>
+<span class="sourceLineNo">2841</span>    public String build() {<a name="line.2841"></a>
+<span class="sourceLineNo">2842</span>        return toString();<a name="line.2842"></a>
+<span class="sourceLineNo">2843</span>    }<a name="line.2843"></a>
+<span class="sourceLineNo">2844</span><a name="line.2844"></a>
+<span class="sourceLineNo">2845</span>    //-----------------------------------------------------------------------<a name="line.2845"></a>
 <span class="sourceLineNo">2846</span>    /**<a name="line.2846"></a>
-<span class="sourceLineNo">2847</span>     * Gets a StringBuffer version of the string builder, creating a<a name="line.2847"></a>
-<span class="sourceLineNo">2848</span>     * new instance each time the method is called.<a name="line.2848"></a>
-<span class="sourceLineNo">2849</span>     *<a name="line.2849"></a>
-<span class="sourceLineNo">2850</span>     * @return the builder as a StringBuffer<a name="line.2850"></a>
-<span class="sourceLineNo">2851</span>     */<a name="line.2851"></a>
-<span class="sourceLineNo">2852</span>    public StringBuffer toStringBuffer() {<a name="line.2852"></a>
-<span class="sourceLineNo">2853</span>        return new StringBuffer(size).append(buffer, 0, size);<a name="line.2853"></a>
-<span class="sourceLineNo">2854</span>    }<a name="line.2854"></a>
-<span class="sourceLineNo">2855</span><a name="line.2855"></a>
-<span class="sourceLineNo">2856</span>    /**<a name="line.2856"></a>
-<span class="sourceLineNo">2857</span>     * Gets a StringBuilder version of the string builder, creating a<a name="line.2857"></a>
-<span class="sourceLineNo">2858</span>     * new instance each time the method is called.<a name="line.2858"></a>
-<span class="sourceLineNo">2859</span>     *<a name="line.2859"></a>
-<span class="sourceLineNo">2860</span>     * @return the builder as a StringBuilder<a name="line.2860"></a>
-<span class="sourceLineNo">2861</span>     */<a name="line.2861"></a>
-<span class="sourceLineNo">2862</span>    public StringBuilder toStringBuilder() {<a name="line.2862"></a>
-<span class="sourceLineNo">2863</span>        return new StringBuilder(size).append(buffer, 0, size);<a name="line.2863"></a>
-<span class="sourceLineNo">2864</span>    }<a name="line.2864"></a>
-<span class="sourceLineNo">2865</span><a name="line.2865"></a>
-<span class="sourceLineNo">2866</span>    /**<a name="line.2866"></a>
-<span class="sourceLineNo">2867</span>     * Implement the {@link Builder} interface.<a name="line.2867"></a>
-<span class="sourceLineNo">2868</span>     * @return the builder as a String<a name="line.2868"></a>
-<span class="sourceLineNo">2869</span>     * @see #toString()<a name="line.2869"></a>
-<span class="sourceLineNo">2870</span>     */<a name="line.2870"></a>
-<span class="sourceLineNo">2871</span>    @Override<a name="line.2871"></a>
-<span class="sourceLineNo">2872</span>    public String build() {<a name="line.2872"></a>
-<span class="sourceLineNo">2873</span>        return toString();<a name="line.2873"></a>
-<span class="sourceLineNo">2874</span>    }<a name="line.2874"></a>
-<span class="sourceLineNo">2875</span><a name="line.2875"></a>
-<span class="sourceLineNo">2876</span>    //-----------------------------------------------------------------------<a name="line.2876"></a>
-<span class="sourceLineNo">2877</span>    /**<a name="line.2877"></a>
-<span class="sourceLineNo">2878</span>     * Validates parameters defining a range of the builder.<a name="line.2878"></a>
-<span class="sourceLineNo">2879</span>     *<a name="line.2879"></a>
-<span class="sourceLineNo">2880</span>     * @param startIndex  the start index, inclusive, must be valid<a name="line.2880"></a>
-<span class="sourceLineNo">2881</span>     * @param endIndex  the end index, exclusive, must be valid except<a name="line.2881"></a>
-<span class="sourceLineNo">2882</span>     *  that if too large it is treated as end of string<a name="line.2882"></a>
-<span class="sourceLineNo">2883</span>     * @return the new string<a name="line.2883"></a>
-<span class="sourceLineNo">2884</span>     * @throws IndexOutOfBoundsException if the index is invalid<a name="line.2884"></a>
-<span class="sourceLineNo">2885</span>     */<a name="line.2885"></a>
-<span class="sourceLineNo">2886</span>    protected int validateRange(final int startIndex, int endIndex) {<a name="line.2886"></a>
-<span class="sourceLineNo">2887</span>        if (startIndex &lt; 0) {<a name="line.2887"></a>
-<span class="sourceLineNo">2888</span>            throw new StringIndexOutOfBoundsException(startIndex);<a name="line.2888"></a>
-<span class="sourceLineNo">2889</span>        }<a name="line.2889"></a>
-<span class="sourceLineNo">2890</span>        if (endIndex &gt; size) {<a name="line.2890"></a>
-<span class="sourceLineNo">2891</span>            endIndex = size;<a name="line.2891"></a>
-<span class="sourceLineNo">2892</span>        }<a name="line.2892"></a>
-<span class="sourceLineNo">2893</span>        if (startIndex &gt; endIndex) {<a name="line.2893"></a>
-<span class="sourceLineNo">2894</span>            throw new StringIndexOutOfBoundsException("end &lt; start");<a name="line.2894"></a>
-<span class="sourceLineNo">2895</span>        }<a name="line.2895"></a>
-<span class="sourceLineNo">2896</span>        return endIndex;<a name="line.2896"></a>
-<span class="sourceLineNo">2897</span>    }<a name="line.2897"></a>
-<span class="sourceLineNo">2898</span><a name="line.2898"></a>
-<span class="sourceLineNo">2899</span>    /**<a name="line.2899"></a>
-<span class="sourceLineNo">2900</span>     * Validates parameters defining a single index in the builder.<a name="line.2900"></a>
-<span class="sourceLineNo">2901</span>     *<a name="line.2901"></a>
-<span class="sourceLineNo">2902</span>     * @param index  the index, must be valid<a name="line.2902"></a>
-<span class="sourceLineNo">2903</span>     * @throws IndexOutOfBoundsException if the index is invalid<a name="line.2903"></a>
-<span class="sourceLineNo">2904</span>     */<a name="line.2904"></a>
-<span class="sourceLineNo">2905</span>    protected void validateIndex(final int index) {<a name="line.2905"></a>
-<span class="sourceLineNo">2906</span>        if (index &lt; 0 || index &gt; size) {<a name="line.2906"></a>
-<span class="sourceLineNo">2907</span>            throw new StringIndexOutOfBoundsException(index);<a name="line.2907"></a>
-<span class="sourceLineNo">2908</span>        }<a name="line.2908"></a>
-<span class="sourceLineNo">2909</span>    }<a name="line.2909"></a>
-<span class="sourceLineNo">2910</span><a name="line.2910"></a>
-<span class="sourceLineNo">2911</span>    //-----------------------------------------------------------------------<a name="line.2911"></a>
-<span class="sourceLineNo">2912</span>    /**<a name="line.2912"></a>
-<span class="sourceLineNo">2913</span>     * Inner class to allow StrBuilder to operate as a tokenizer.<a name="line.2913"></a>
-<span class="sourceLineNo">2914</span>     */<a name="line.2914"></a>
-<span class="sourceLineNo">2915</span>    class StrBuilderTokenizer extends StrTokenizer {<a name="line.2915"></a>
-<span class="sourceLineNo">2916</span><a name="line.2916"></a>
-<span class="sourceLineNo">2917</span>        /**<a name="line.2917"></a>
-<span class="sourceLineNo">2918</span>         * Default constructor.<a name="line.2918"></a>
-<span class="sourceLineNo">2919</span>         */<a name="line.2919"></a>
-<span class="sourceLineNo">2920</span>        StrBuilderTokenizer() {<a name="line.2920"></a>
-<span class="sourceLineNo">2921</span>            super();<a name="line.2921"></a>
-<span class="sourceLineNo">2922</span>        }<a name="line.2922"></a>
+<span class="sourceLineNo">2847</span>     * Validates parameters defining a range of the builder.<a name="line.2847"></a>
+<span class="sourceLineNo">2848</span>     *<a name="line.2848"></a>
+<span class="sourceLineNo">2849</span>     * @param startIndex  the start index, inclusive, must be valid<a name="line.2849"></a>
+<span class="sourceLineNo">2850</span>     * @param endIndex  the end index, exclusive, must be valid except<a name="line.2850"></a>
+<span class="sourceLineNo">2851</span>     *  that if too large it is treated as end of string<a name="line.2851"></a>
+<span class="sourceLineNo">2852</span>     * @return the new string<a name="line.2852"></a>
+<span class="sourceLineNo">2853</span>     * @throws IndexOutOfBoundsException if the index is invalid<a name="line.2853"></a>
+<span class="sourceLineNo">2854</span>     */<a name="line.2854"></a>
+<span class="sourceLineNo">2855</span>    protected int validateRange(final int startIndex, int endIndex) {<a name="line.2855"></a>
+<span class="sourceLineNo">2856</span>        if (startIndex &lt; 0) {<a name="line.2856"></a>
+<span class="sourceLineNo">2857</span>            throw new StringIndexOutOfBoundsException(startIndex);<a name="line.2857"></a>
+<span class="sourceLineNo">2858</span>        }<a name="line.2858"></a>
+<span class="sourceLineNo">2859</span>        if (endIndex &gt; size) {<a name="line.2859"></a>
+<span class="sourceLineNo">2860</span>            endIndex = size;<a name="line.2860"></a>
+<span class="sourceLineNo">2861</span>        }<a name="line.2861"></a>
+<span class="sourceLineNo">2862</span>        if (startIndex &gt; endIndex) {<a name="line.2862"></a>
+<span class="sourceLineNo">2863</span>            throw new StringIndexOutOfBoundsException("end &lt; start");<a name="line.2863"></a>
+<span class="sourceLineNo">2864</span>        }<a name="line.2864"></a>
+<span class="sourceLineNo">2865</span>        return endIndex;<a name="line.2865"></a>
+<span class="sourceLineNo">2866</span>    }<a name="line.2866"></a>
+<span class="sourceLineNo">2867</span><a name="line.2867"></a>
+<span class="sourceLineNo">2868</span>    /**<a name="line.2868"></a>
+<span class="sourceLineNo">2869</span>     * Validates parameters defining a single index in the builder.<a name="line.2869"></a>
+<span class="sourceLineNo">2870</span>     *<a name="line.2870"></a>
+<span class="sourceLineNo">2871</span>     * @param index  the index, must be valid<a name="line.2871"></a>
+<span class="sourceLineNo">2872</span>     * @throws IndexOutOfBoundsException if the index is invalid<a name="line.2872"></a>
+<span class="sourceLineNo">2873</span>     */<a name="line.2873"></a>
+<span class="sourceLineNo">2874</span>    protected void validateIndex(final int index) {<a name="line.2874"></a>
+<span class="sourceLineNo">2875</span>        if (index &lt; 0 || index &gt; size) {<a name="line.2875"></a>
+<span class="sourceLineNo">2876</span>            throw new StringIndexOutOfBoundsException(index);<a name="line.2876"></a>
+<span class="sourceLineNo">2877</span>        }<a name="line.2877"></a>
+<span class="sourceLineNo">2878</span>    }<a name="line.2878"></a>
+<span class="sourceLineNo">2879</span><a name="line.2879"></a>
+<span class="sourceLineNo">2880</span>    //-----------------------------------------------------------------------<a name="line.2880"></a>
+<span class="sourceLineNo">2881</span>    /**<a name="line.2881"></a>
+<span class="sourceLineNo">2882</span>     * Inner class to allow StrBuilder to operate as a tokenizer.<a name="line.2882"></a>
+<span class="sourceLineNo">2883</span>     */<a name="line.2883"></a>
+<span class="sourceLineNo">2884</span>    class StrBuilderTokenizer extends StrTokenizer {<a name="line.2884"></a>
+<span class="sourceLineNo">2885</span><a name="line.2885"></a>
+<span class="sourceLineNo">2886</span>        /**<a name="line.2886"></a>
+<span class="sourceLineNo">2887</span>         * Default constructor.<a name="line.2887"></a>
+<span class="sourceLineNo">2888</span>         */<a name="line.2888"></a>
+<span class="sourceLineNo">2889</span>        StrBuilderTokenizer() {<a name="line.2889"></a>
+<span class="sourceLineNo">2890</span>            super();<a name="line.2890"></a>
+<span class="sourceLineNo">2891</span>        }<a name="line.2891"></a>
+<span class="sourceLineNo">2892</span><a name="line.2892"></a>
+<span class="sourceLineNo">2893</span>        /** {@inheritDoc} */<a name="line.2893"></a>
+<span class="sourceLineNo">2894</span>        @Override<a name="line.2894"></a>
+<span class="sourceLineNo">2895</span>        protected List&lt;String&gt; tokenize(final char[] chars, final int offset, final int count) {<a name="line.2895"></a>
+<span class="sourceLineNo">2896</span>            if (chars == null) {<a name="line.2896"></a>
+<span class="sourceLineNo">2897</span>                return super.tokenize(<a name="line.2897"></a>
+<span class="sourceLineNo">2898</span>                        StrBuilder.this.buffer, 0, StrBuilder.this.size());<a name="line.2898"></a>
+<span class="sourceLineNo">2899</span>            }<a name="line.2899"></a>
+<span class="sourceLineNo">2900</span>            return super.tokenize(chars, offset, count);<a name="line.2900"></a>
+<span class="sourceLineNo">2901</span>        }<a name="line.2901"></a>
+<span class="sourceLineNo">2902</span><a name="line.2902"></a>
+<span class="sourceLineNo">2903</span>        /** {@inheritDoc} */<a name="line.2903"></a>
+<span class="sourceLineNo">2904</span>        @Override<a name="line.2904"></a>
+<span class="sourceLineNo">2905</span>        public String getContent() {<a name="line.2905"></a>
+<span class="sourceLineNo">2906</span>            final String str = super.getContent();<a name="line.2906"></a>
+<span class="sourceLineNo">2907</span>            if (str == null) {<a name="line.2907"></a>
+<span class="sourceLineNo">2908</span>                return StrBuilder.this.toString();<a name="line.2908"></a>
+<span class="sourceLineNo">2909</span>            }<a name="line.2909"></a>
+<span class="sourceLineNo">2910</span>            return str;<a name="line.2910"></a>
+<span class="sourceLineNo">2911</span>        }<a name="line.2911"></a>
+<span class="sourceLineNo">2912</span>    }<a name="line.2912"></a>
+<span class="sourceLineNo">2913</span><a name="line.2913"></a>
+<span class="sourceLineNo">2914</span>    //-----------------------------------------------------------------------<a name="line.2914"></a>
+<span class="sourceLineNo">2915</span>    /**<a name="line.2915"></a>
+<span class="sourceLineNo">2916</span>     * Inner class to allow StrBuilder to operate as a reader.<a name="line.2916"></a>
+<span class="sourceLineNo">2917</span>     */<a name="line.2917"></a>
+<span class="sourceLineNo">2918</span>    class StrBuilderReader extends Reader {<a name="line.2918"></a>
+<span class="sourceLineNo">2919</span>        /** The current stream position. */<a name="line.2919"></a>
+<span class="sourceLineNo">2920</span>        private int pos;<a name="line.2920"></a>
+<span class="sourceLineNo">2921</span>        /** The last mark position. */<a name="line.2921"></a>
+<span class="sourceLineNo">2922</span>        private int mark;<a name="line.2922"></a>
 <span class="sourceLineNo">2923</span><a name="line.2923"></a>
-<span class="sourceLineNo">2924</span>        /** {@inheritDoc} */<a name="line.2924"></a>
-<span class="sourceLineNo">2925</span>        @Override<a name="line.2925"></a>
-<span class="sourceLineNo">2926</span>        protected List&lt;String&gt; tokenize(final char[] chars, final int offset, final int count) {<a name="line.2926"></a>
-<span class="sourceLineNo">2927</span>            if (chars == null) {<a name="line.2927"></a>
-<span class="sourceLineNo">2928</span>                return super.tokenize(<a name="line.2928"></a>
-<span class="sourceLineNo">2929</span>                        StrBuilder.this.buffer, 0, StrBuilder.this.size());<a name="line.2929"></a>
-<span class="sourceLineNo">2930</span>            }<a name="line.2930"></a>
-<span class="sourceLineNo">2931</span>            return super.tokenize(chars, offset, count);<a name="line.2931"></a>
-<span class="sourceLineNo">2932</span>        }<a name="line.2932"></a>
-<span class="sourceLineNo">2933</span><a name="line.2933"></a>
-<span class="sourceLineNo">2934</span>        /** {@inheritDoc} */<a name="line.2934"></a>
-<span class="sourceLineNo">2935</span>        @Override<a name="line.2935"></a>
-<span class="sourceLineNo">2936</span>        public String getContent() {<a name="line.2936"></a>
-<span class="sourceLineNo">2937</span>            final String str = super.getContent();<a name="line.2937"></a>
-<span class="sourceLineNo">2938</span>            if (str == null) {<a name="line.2938"></a>
-<span class="sourceLineNo">2939</span>                return StrBuilder.this.toString();<a name="line.2939"></a>
-<span class="sourceLineNo">2940</span>            }<a name="line.2940"></a>
-<span class="sourceLineNo">2941</span>            return str;<a name="line.2941"></a>
-<span class="sourceLineNo">2942</span>        }<a name="line.2942"></a>
-<span class="sourceLineNo">2943</span>    }<a name="line.2943"></a>
-<span class="sourceLineNo">2944</span><a name="line.2944"></a>
-<span class="sourceLineNo">2945</span>    //-----------------------------------------------------------------------<a name="line.2945"></a>
-<span class="sourceLineNo">2946</span>    /**<a name="line.2946"></a>
-<span class="sourceLineNo">2947</span>     * Inner class to allow StrBuilder to operate as a reader.<a name="line.2947"></a>
-<span class="sourceLineNo">2948</span>     */<a name="line.2948"></a>
-<span class="sourceLineNo">2949</span>    class StrBuilderReader extends Reader {<a name="line.2949"></a>
-<span class="sourceLineNo">2950</span>        /** The current stream position. */<a name="line.2950"></a>
-<span class="sourceLineNo">2951</span>        private int pos;<a name="line.2951"></a>
-<span class="sourceLineNo">2952</span>        /** The last mark position. */<a name="line.2952"></a>
-<span class="sourceLineNo">2953</span>        private int mark;<a name="line.2953"></a>
-<span class="sourceLineNo">2954</span><a name="line.2954"></a>
-<span class="sourceLineNo">2955</span>        /**<a name="line.2955"></a>
-<span class="sourceLineNo">2956</span>         * Default constructor.<a name="line.2956"></a>
-<span class="sourceLineNo">2957</span>         */<a name="line.2957"></a>
-<span class="sourceLineNo">2958</span>        StrBuilderReader() {<a name="line.2958"></a>
-<span class="sourceLineNo">2959</span>            super();<a name="line.2959"></a>
-<span class="sourceLineNo">2960</span>        }<a name="line.2960"></a>
-<span class="sourceLineNo">2961</span><a name="line.2961"></a>
-<span class="sourceLineNo">2962</span>        /** {@inheritDoc} */<a name="line.2962"></a>
-<span class="sourceLineNo">2963</span>        @Override<a name="line.2963"></a>
-<span class="sourceLineNo">2964</span>        public void close() {<a name="line.2964"></a>
-<span class="sourceLineNo">2965</span>            // do nothing<a name="line.2965"></a>
-<span class="sourceLineNo">2966</span>        }<a name="line.2966"></a>
-<span class="sourceLineNo">2967</span><a name="line.2967"></a>
-<span class="sourceLineNo">2968</span>        /** {@inheritDoc} */<a name="line.2968"></a>
-<span class="sourceLineNo">2969</span>        @Override<a name="line.2969"></a>
-<span class="sourceLineNo">2970</span>        public int read() {<a name="line.2970"></a>
-<span class="sourceLineNo">2971</span>            if (!ready()) {<a name="line.2971"></a>
-<span class="sourceLineNo">2972</span>                return -1;<a name="line.2972"></a>
-<span class="sourceLineNo">2973</span>            }<a name="line.2973"></a>
-<span class="sourceLineNo">2974</span>            return StrBuilder.this.charAt(pos++);<a name="line.2974"></a>
-<span class="sourceLineNo">2975</span>        }<a name="line.2975"></a>
-<span class="sourceLineNo">2976</span><a name="line.2976"></a>
-<span class="sourceLineNo">2977</span>        /** {@inheritDoc} */<a name="line.2977"></a>
-<span class="sourceLineNo">2978</span>        @Override<a name="line.2978"></a>
-<span class="sourceLineNo">2979</span>        public int read(final char[] b, final int off, int len) {<a name="line.2979"></a>
-<span class="sourceLineNo">2980</span>            if (off &lt; 0 || len &lt; 0 || off &gt; b.length<a name="line.2980"></a>
-<span class="sourceLineNo">2981</span>                    || (off + len) &gt; b.length || (off + len) &lt; 0) {<a name="line.2981"></a>
-<span class="sourceLineNo">2982</span>                throw new IndexOutOfBoundsException();<a name="line.2982"></a>
-<span class="sourceLineNo">2983</span>            }<a name="line.2983"></a>
-<span class="sourceLineNo">2984</span>            if (len == 0) {<a name="line.2984"></a>
-<span class="sourceLineNo">2985</span>                return 0;<a name="line.2985"></a>
-<span class="sourceLineNo">2986</span>            }<a name="line.2986"></a>
-<span class="sourceLineNo">2987</span>            if (pos &gt;= StrBuilder.this.size()) {<a name="line.2987"></a>
-<span class="sourceLineNo">2988</span>                return -1;<a name="line.2988"></a>
-<span class="sourceLineNo">2989</span>            }<a name="line.2989"></a>
-<span class="sourceLineNo">2990</span>            if (pos + len &gt; size()) {<a name="line.2990"></a>
-<span class="sourceLineNo">2991</span>                len = StrBuilder.this.size() - pos;<a name="line.2991"></a>
-<span class="sourceLineNo">2992</span>            }<a name="line.2992"></a>
-<span class="sourceLineNo">2993</span>            StrBuilder.this.getChars(pos, pos + len, b, off);<a name="line.2993"></a>
-<span class="sourceLineNo">2994</span>            pos += len;<a name="line.2994"></a>
-<span class="sourceLineNo">2995</span>            return len;<a name="line.2995"></a>
+<span class="sourceLineNo">2924</span>        /**<a name="line.2924"></a>
+<span class="sourceLineNo">2925</span>         * Default constructor.<a name="line.2925"></a>
+<span class="sourceLineNo">2926</span>         */<a name="line.2926"></a>
+<span class="sourceLineNo">2927</span>        StrBuilderReader() {<a name="line.2927"></a>
+<span class="sourceLineNo">2928</span>            super();<a name="line.2928"></a>
+<span class="sourceLineNo">2929</span>        }<a name="line.2929"></a>
+<span class="sourceLineNo">2930</span><a name="line.2930"></a>
+<span class="sourceLineNo">2931</span>        /** {@inheritDoc} */<a name="line.2931"></a>
+<span class="sourceLineNo">2932</span>        @Override<a name="line.2932"></a>
+<span class="sourceLineNo">2933</span>        public void close() {<a name="line.2933"></a>
+<span class="sourceLineNo">2934</span>            // do nothing<a name="line.2934"></a>
+<span class="sourceLineNo">2935</span>        }<a name="line.2935"></a>
+<span class="sourceLineNo">2936</span><a name="line.2936"></a>
+<span class="sourceLineNo">2937</span>        /** {@inheritDoc} */<a name="line.2937"></a>
+<span class="sourceLineNo">2938</span>        @Override<a name="line.2938"></a>
+<span class="sourceLineNo">2939</span>        public int read() {<a name="line.2939"></a>
+<span class="sourceLineNo">2940</span>            if (!ready()) {<a name="line.2940"></a>
+<span class="sourceLineNo">2941</span>                return -1;<a name="line.2941"></a>
+<span class="sourceLineNo">2942</span>            }<a name="line.2942"></a>
+<span class="sourceLineNo">2943</span>            return StrBuilder.this.charAt(pos++);<a name="line.2943"></a>
+<span class="sourceLineNo">2944</span>        }<a name="line.2944"></a>
+<span class="sourceLineNo">2945</span><a name="line.2945"></a>
+<span class="sourceLineNo">2946</span>        /** {@inheritDoc} */<a name="line.2946"></a>
+<span class="sourceLineNo">2947</span>        @Override<a name="line.2947"></a>
+<span class="sourceLineNo">2948</span>        public int read(final char[] b, final int off, int len) {<a name="line.2948"></a>
+<span class="sourceLineNo">2949</span>            if (off &lt; 0 || len &lt; 0 || off &gt; b.length<a name="line.2949"></a>
+<span class="sourceLineNo">2950</span>                    || (off + len) &gt; b.length || (off + len) &lt; 0) {<a name="line.2950"></a>
+<span class="sourceLineNo">2951</span>                throw new IndexOutOfBoundsException();<a name="line.2951"></a>
+<span class="sourceLineNo">2952</span>            }<a name="line.2952"></a>
+<span class="sourceLineNo">2953</span>            if (len == 0) {<a name="line.2953"></a>
+<span class="sourceLineNo">2954</span>                return 0;<a name="line.2954"></a>
+<span class="sourceLineNo">2955</span>            }<a name="line.2955"></a>
+<span class="sourceLineNo">2956</span>            if (pos &gt;= StrBuilder.this.size()) {<a name="line.2956"></a>
+<span class="sourceLineNo">2957</span>                return -1;<a name="line.2957"></a>
+<span class="sourceLineNo">2958</span>            }<a name="line.2958"></a>
+<span class="sourceLineNo">2959</span>            if (pos + len &gt; size()) {<a name="line.2959"></a>
+<span class="sourceLineNo">2960</span>                len = StrBuilder.this.size() - pos;<a name="line.2960"></a>
+<span class="sourceLineNo">2961</span>            }<a name="line.2961"></a>
+<span class="sourceLineNo">2962</span>            StrBuilder.this.getChars(pos, pos + len, b, off);<a name="line.2962"></a>
+<span class="sourceLineNo">2963</span>            pos += len;<a name="line.2963"></a>
+<span class="sourceLineNo">2964</span>            return len;<a name="line.2964"></a>
+<span class="sourceLineNo">2965</span>        }<a name="line.2965"></a>
+<span class="sourceLineNo">2966</span><a name="line.2966"></a>
+<span class="sourceLineNo">2967</span>        /** {@inheritDoc} */<a name="line.2967"></a>
+<span class="sourceLineNo">2968</span>        @Override<a name="line.2968"></a>
+<span class="sourceLineNo">2969</span>        public long skip(long n) {<a name="line.2969"></a>
+<span class="sourceLineNo">2970</span>            if (pos + n &gt; StrBuilder.this.size()) {<a name="line.2970"></a>
+<span class="sourceLineNo">2971</span>                n = StrBuilder.this.size() - pos;<a name="line.2971"></a>
+<span class="sourceLineNo">2972</span>            }<a name="line.2972"></a>
+<span class="sourceLineNo">2973</span>            if (n &lt; 0) {<a name="line.2973"></a>
+<span class="sourceLineNo">2974</span>                return 0;<a name="line.2974"></a>
+<span class="sourceLineNo">2975</span>            }<a name="line.2975"></a>
+<span class="sourceLineNo">2976</span>            pos += n;<a name="line.2976"></a>
+<span class="sourceLineNo">2977</span>            return n;<a name="line.2977"></a>
+<span class="sourceLineNo">2978</span>        }<a name="line.2978"></a>
+<span class="sourceLineNo">2979</span><a name="line.2979"></a>
+<span class="sourceLineNo">2980</span>        /** {@inheritDoc} */<a name="line.2980"></a>
+<span class="sourceLineNo">2981</span>        @Override<a name="line.2981"></a>
+<span class="sourceLineNo">2982</span>        public boolean ready() {<a name="line.2982"></a>
+<span class="sourceLineNo">2983</span>            return pos &lt; StrBuilder.this.size();<a name="line.2983"></a>
+<span class="sourceLineNo">2984</span>        }<a name="line.2984"></a>
+<span class="sourceLineNo">2985</span><a name="line.2985"></a>
+<span class="sourceLineNo">2986</span>        /** {@inheritDoc} */<a name="line.2986"></a>
+<span class="sourceLineNo">2987</span>        @Override<a name="line.2987"></a>
+<span class="sourceLineNo">2988</span>        public boolean markSupported() {<a name="line.2988"></a>
+<span class="sourceLineNo">2989</span>            return true;<a name="line.2989"></a>
+<span class="sourceLineNo">2990</span>        }<a name="line.2990"></a>
+<span class="sourceLineNo">2991</span><a name="line.2991"></a>
+<span class="sourceLineNo">2992</span>        /** {@inheritDoc} */<a name="line.2992"></a>
+<span class="sourceLineNo">2993</span>        @Override<a name="line.2993"></a>
+<span class="sourceLineNo">2994</span>        public void mark(final int readAheadLimit) {<a name="line.2994"></a>
+<span class="sourceLineNo">2995</span>            mark = pos;<a name="line.2995"></a>
 <span class="sourceLineNo">2996</span>        }<a name="line.2996"></a>
 <span class="sourceLineNo">2997</span><a name="line.2997"></a>
 <span class="sourceLineNo">2998</span>        /** {@inheritDoc} */<a name="line.2998"></a>
 <span class="sourceLineNo">2999</span>        @Override<a name="line.2999"></a>
-<span class="sourceLineNo">3000</span>        public long skip(long n) {<a name="line.3000"></a>
-<span class="sourceLineNo">3001</span>            if (pos + n &gt; StrBuilder.this.size()) {<a name="line.3001"></a>
-<span class="sourceLineNo">3002</span>                n = StrBuilder.this.size() - pos;<a name="line.3002"></a>
-<span class="sourceLineNo">3003</span>            }<a name="line.3003"></a>
-<span class="sourceLineNo">3004</span>            if (n &lt; 0) {<a name="line.3004"></a>
-<span class="sourceLineNo">3005</span>                return 0;<a name="line.3005"></a>
-<span class="sourceLineNo">3006</span>            }<a name="line.3006"></a>
-<span class="sourceLineNo">3007</span>            pos += n;<a name="line.3007"></a>
-<span class="sourceLineNo">3008</span>            return n;<a name="line.3008"></a>
-<span class="sourceLineNo">3009</span>        }<a name="line.3009"></a>
+<span class="sourceLineNo">3000</span>        public void reset() {<a name="line.3000"></a>
+<span class="sourceLineNo">3001</span>            pos = mark;<a name="line.3001"></a>
+<span class="sourceLineNo">3002</span>        }<a name="line.3002"></a>
+<span class="sourceLineNo">3003</span>    }<a name="line.3003"></a>
+<span class="sourceLineNo">3004</span><a name="line.3004"></a>
+<span class="sourceLineNo">3005</span>    //-----------------------------------------------------------------------<a name="line.3005"></a>
+<span class="sourceLineNo">3006</span>    /**<a name="line.3006"></a>
+<span class="sourceLineNo">3007</span>     * Inner class to allow StrBuilder to operate as a writer.<a name="line.3007"></a>
+<span class="sourceLineNo">3008</span>     */<a name="line.3008"></a>
+<span class="sourceLineNo">3009</span>    class StrBuilderWriter extends Writer {<a name="line.3009"></a>
 <span class="sourceLineNo">3010</span><a name="line.3010"></a>
-<span class="sourceLineNo">3011</span>        /** {@inheritDoc} */<a name="line.3011"></a>
-<span class="sourceLineNo">3012</span>        @Override<a name="line.3012"></a>
-<span class="sourceLineNo">3013</span>        public boolean ready() {<a name="line.3013"></a>
-<span class="sourceLineNo">3014</span>            return pos &lt; StrBuilder.this.size();<a name="line.3014"></a>
-<span class="sourceLineNo">3015</span>        }<a name="line.3015"></a>
-<span class="sourceLineNo">3016</span><a name="line.3016"></a>
-<span class="sourceLineNo">3017</span>        /** {@inheritDoc} */<a name="line.3017"></a>
-<span class="sourceLineNo">3018</span>        @Override<a name="line.3018"></a>
-<span class="sourceLineNo">3019</span>        public boolean markSupported() {<a name="line.3019"></a>
-<span class="sourceLineNo">3020</span>            return true;<a name="line.3020"></a>
-<span class="sourceLineNo">3021</span>        }<a name="line.3021"></a>
-<span class="sourceLineNo">3022</span><a name="line.3022"></a>
-<span class="sourceLineNo">3023</span>        /** {@inheritDoc} */<a name="line.3023"></a>
-<span class="sourceLineNo">3024</span>        @Override<a name="line.3024"></a>
-<span class="sourceLineNo">3025</span>        public void mark(final int readAheadLimit) {<a name="line.3025"></a>
-<span class="sourceLineNo">3026</span>            mark = pos;<a name="line.3026"></a>
-<span class="sourceLineNo">3027</span>        }<a name="line.3027"></a>
-<span class="sourceLineNo">3028</span><a name="line.3028"></a>
-<span class="sourceLineNo">3029</span>        /** {@inheritDoc} */<a name="line.3029"></a>
-<span class="sourceLineNo">3030</span>        @Override<a name="line.3030"></a>
-<span class="sourceLineNo">3031</span>        public void reset() {<a name="line.3031"></a>
-<span class="sourceLineNo">3032</span>            pos = mark;<a name="line.3032"></a>
-<span class="sourceLineNo">3033</span>        }<a name="line.3033"></a>
-<span class="sourceLineNo">3034</span>    }<a name="line.3034"></a>
+<span class="sourceLineNo">3011</span>        /**<a name="line.3011"></a>
+<span class="sourceLineNo">3012</span>         * Default constructor.<a name="line.3012"></a>
+<span class="sourceLineNo">3013</span>         */<a name="line.3013"></a>
+<span class="sourceLineNo">3014</span>        StrBuilderWriter() {<a name="line.3014"></a>
+<span class="sourceLineNo">3015</span>            super();<a name="line.3015"></a>
+<span class="sourceLineNo">3016</span>        }<a name="line.3016"></a>
+<span class="sourceLineNo">3017</span><a name="line.3017"></a>
+<span class="sourceLineNo">3018</span>        /** {@inheritDoc} */<a name="line.3018"></a>
+<span class="sourceLineNo">3019</span>        @Override<a name="line.3019"></a>
+<span class="sourceLineNo">3020</span>        public void close() {<a name="line.3020"></a>
+<span class="sourceLineNo">3021</span>            // do nothing<a name="line.3021"></a>
+<span class="sourceLineNo">3022</span>        }<a name="line.3022"></a>
+<span class="sourceLineNo">3023</span><a name="line.3023"></a>
+<span class="sourceLineNo">3024</span>        /** {@inheritDoc} */<a name="line.3024"></a>
+<span class="sourceLineNo">3025</span>        @Override<a name="line.3025"></a>
+<span class="sourceLineNo">3026</span>        public void flush() {<a name="line.3026"></a>
+<span class="sourceLineNo">3027</span>            // do nothing<a name="line.3027"></a>
+<span class="sourceLineNo">3028</span>        }<a name="line.3028"></a>
+<span class="sourceLineNo">3029</span><a name="line.3029"></a>
+<span class="sourceLineNo">3030</span>        /** {@inheritDoc} */<a name="line.3030"></a>
+<span class="sourceLineNo">3031</span>        @Override<a name="line.3031"></a>
+<span class="sourceLineNo">3032</span>        public void write(final int c) {<a name="line.3032"></a>
+<span class="sourceLineNo">3033</span>            StrBuilder.this.append((char) c);<a name="line.3033"></a>
+<span class="sourceLineNo">3034</span>        }<a name="line.3034"></a>
 <span class="sourceLineNo">3035</span><a name="line.3035"></a>
-<span class="sourceLineNo">3036</span>    //-----------------------------------------------------------------------<a name="line.3036"></a>
-<span class="sourceLineNo">3037</span>    /**<a name="line.3037"></a>
-<span class="sourceLineNo">3038</span>     * Inner class to allow StrBuilder to operate as a writer.<a name="line.3038"></a>
-<span class="sourceLineNo">3039</span>     */<a name="line.3039"></a>
-<span class="sourceLineNo">3040</span>    class StrBuilderWriter extends Writer {<a name="line.3040"></a>
+<span class="sourceLineNo">3036</span>        /** {@inheritDoc} */<a name="line.3036"></a>
+<span class="sourceLineNo">3037</span>        @Override<a name="line.3037"></a>
+<span class="sourceLineNo">3038</span>        public void write(final char[] cbuf) {<a name="line.3038"></a>
+<span class="sourceLineNo">3039</span>            StrBuilder.this.append(cbuf);<a name="line.3039"></a>
+<span class="sourceLineNo">3040</span>        }<a name="line.3040"></a>
 <span class="sourceLineNo">3041</span><a name="line.3041"></a>
-<span class="sourceLineNo">3042</span>        /**<a name="line.3042"></a>
-<span class="sourceLineNo">3043</span>         * Default constructor.<a name="line.3043"></a>
-<span class="sourceLineNo">3044</span>         */<a name="line.3044"></a>
-<span class="sourceLineNo">3045</span>        StrBuilderWriter() {<a name="line.3045"></a>
-<span class="sourceLineNo">3046</span>            super();<a name="line.3046"></a>
-<span class="sourceLineNo">3047</span>        }<a name="line.3047"></a>
-<span class="sourceLineNo">3048</span><a name="line.3048"></a>
-<span class="sourceLineNo">3049</span>        /** {@inheritDoc} */<a name="line.3049"></a>
-<span class="sourceLineNo">3050</span>        @Override<a name="line.3050"></a>
-<span class="sourceLineNo">3051</span>        public void close() {<a name="line.3051"></a>
-<span class="sourceLineNo">3052</span>            // do nothing<a name="line.3052"></a>
-<span class="sourceLineNo">3053</span>        }<a name="line.3053"></a>
-<span class="sourceLineNo">3054</span><a name="line.3054"></a>
-<span class="sourceLineNo">3055</span>        /** {@inheritDoc} */<a name="line.3055"></a>
-<span class="sourceLineNo">3056</span>        @Override<a name="line.3056"></a>
-<span class="sourceLineNo">3057</span>        public void flush() {<a name="line.3057"></a>
-<span class="sourceLineNo">3058</span>            // do nothing<a name="line.3058"></a>
-<span class="sourceLineNo">3059</span>        }<a name="line.3059"></a>
+<span class="sourceLineNo">3042</span>        /** {@inheritDoc} */<a name="line.3042"></a>
+<span class="sourceLineNo">3043</span>        @Override<a name="line.3043"></a>
+<span class="sourceLineNo">3044</span>        public void write(final char[] cbuf, final int off, final int len) {<a name="line.3044"></a>
+<span class="sourceLineNo">3045</span>            StrBuilder.this.append(cbuf, off, len);<a name="line.3045"></a>
+<span class="sourceLineNo">3046</span>        }<a name="line.3046"></a>
+<span class="sourceLineNo">3047</span><a name="line.3047"></a>
+<span class="sourceLineNo">3048</span>        /** {@inheritDoc} */<a name="line.3048"></a>
+<span class="sourceLineNo">3049</span>        @Override<a name="line.3049"></a>
+<span class="sourceLineNo">3050</span>        public void write(final String str) {<a name="line.3050"></a>
+<span class="sourceLineNo">3051</span>            StrBuilder.this.append(str);<a name="line.3051"></a>
+<span class="sourceLineNo">3052</span>        }<a name="line.3052"></a>
+<span class="sourceLineNo">3053</span><a name="line.3053"></a>
+<span class="sourceLineNo">3054</span>        /** {@inheritDoc} */<a name="line.3054"></a>
+<span class="sourceLineNo">3055</span>        @Override<a name="line.3055"></a>
+<span class="sourceLineNo">3056</span>        public void write(final String str, final int off, final int len) {<a name="line.3056"></a>
+<span class="sourceLineNo">3057</span>            StrBuilder.this.append(str, off, len);<a name="line.3057"></a>
+<span class="sourceLineNo">3058</span>        }<a name="line.3058"></a>
+<span class="sourceLineNo">3059</span>    }<a name="line.3059"></a>
 <span class="sourceLineNo">3060</span><a name="line.3060"></a>
-<span class="sourceLineNo">3061</span>        /** {@inheritDoc} */<a name="line.3061"></a>
-<span class="sourceLineNo">3062</span>        @Override<a name="line.3062"></a>
-<span class="sourceLineNo">3063</span>        public void write(final int c) {<a name="line.3063"></a>
-<span class="sourceLineNo">3064</span>            StrBuilder.this.append((char) c);<a name="line.3064"></a>
-<span class="sourceLineNo">3065</span>        }<a name="line.3065"></a>
-<span class="sourceLineNo">3066</span><a name="line.3066"></a>
-<span class="sourceLineNo">3067</span>        /** {@inheritDoc} */<a name="line.3067"></a>
-<span class="sourceLineNo">3068</span>        @Override<a name="line.3068"></a>
-<span class="sourceLineNo">3069</span>        public void write(final char[] cbuf) {<a name="line.3069"></a>
-<span class="sourceLineNo">3070</span>            StrBuilder.this.append(cbuf);<a name="line.3070"></a>
-<span class="sourceLineNo">3071</span>        }<a name="line.3071"></a>
-<span class="sourceLineNo">3072</span><a name="line.3072"></a>
-<span class="sourceLineNo">3073</span>        /** {@inheritDoc} */<a name="line.3073"></a>
-<span class="sourceLineNo">3074</span>        @Override<a name="line.3074"></a>
-<span class="sourceLineNo">3075</span>        public void write(final char[] cbuf, final int off, final int len) {<a name="line.3075"></a>
-<span class="sourceLineNo">3076</span>            StrBuilder.this.append(cbuf, off, len);<a name="line.3076"></a>
-<span class="sourceLineNo">3077</span>        }<a name="line.3077"></a>
-<span class="sourceLineNo">3078</span><a name="line.3078"></a>
-<span class="sourceLineNo">3079</span>        /** {@inheritDoc} */<a name="line.3079"></a>
-<span class="sourceLineNo">3080</span>        @Override<a name="line.3080"></a>
-<span class="sourceLineNo">3081</span>        public void write(final String str) {<a name="line.3081"></a>
-<span class="sourceLineNo">3082</span>            StrBuilder.this.append(str);<a name="line.3082"></a>
-<span class="sourceLineNo">3083</span>        }<a name="line.3083"></a>
-<span class="sourceLineNo">3084</span><a name="line.3084"></a>
-<span class="sourceLineNo">3085</span>        /** {@inheritDoc} */<a name="line.3085"></a>
-<span class="sourceLineNo">3086</span>        @Override<a name="line.3086"></a>
-<span class="sourceLineNo">3087</span>        public void write(final String str, final int off, final int len) {<a name="line.3087"></a>
-<span class="sourceLineNo">3088</span>            StrBuilder.this.append(str, off, len);<a name="line.3088"></a>
-<span class="sourceLineNo">3089</span>        }<a name="line.3089"></a>
-<span class="sourceLineNo">3090</span>    }<a name="line.3090"></a>
-<span class="sourceLineNo">3091</span><a name="line.3091"></a>
-<span class="sourceLineNo">3092</span>}<a name="line.3092"></a>
+<span class="sourceLineNo">3061</span>}<a name="line.3061"></a>
 
 
 

Modified: websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrLookup.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrLookup.html (original)
+++ websites/production/commons/content/proper/commons-text/apidocs/src-html/org/apache/commons/text/StrLookup.html Tue May 23 13:12:41 2017
@@ -181,12 +181,13 @@
 <span class="sourceLineNo">173</span>                    return System.getProperty(key);<a name="line.173"></a>
 <span class="sourceLineNo">174</span>                } catch (final SecurityException scex) {<a name="line.174"></a>
 <span class="sourceLineNo">175</span>                    // Squelched. All lookup(String) will return null.<a name="line.175"></a>
-<span class="sourceLineNo">176</span>                }<a name="line.176"></a>
-<span class="sourceLineNo">177</span>            }<a name="line.177"></a>
-<span class="sourceLineNo">178</span>            return null;<a name="line.178"></a>
-<span class="sourceLineNo">179</span>        }<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    }<a name="line.180"></a>
-<span class="sourceLineNo">181</span>}<a name="line.181"></a>
+<span class="sourceLineNo">176</span>                    return null;<a name="line.176"></a>
+<span class="sourceLineNo">177</span>                }<a name="line.177"></a>
+<span class="sourceLineNo">178</span>            }<a name="line.178"></a>
+<span class="sourceLineNo">179</span>            return null;<a name="line.179"></a>
+<span class="sourceLineNo">180</span>        }<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    }<a name="line.181"></a>
+<span class="sourceLineNo">182</span>}<a name="line.182"></a>
 
 
 



Mime
View raw message