maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r843314 [16/18] - in /websites/production/maven/content/shared/maven-shared-utils: ./ apidocs/ apidocs/org/apache/maven/shared/utils/ apidocs/org/apache/maven/shared/utils/class-use/ apidocs/org/apache/maven/shared/utils/cli/ apidocs/org/ap...
Date Fri, 21 Dec 2012 04:53:08 GMT
Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XMLEncode.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XMLEncode.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XMLEncode.html
Fri Dec 21 04:53:01 2012
@@ -29,28 +29,28 @@
 <a class="jxr_linenumber" name="19" href="#19">19</a>  <em class="jxr_comment">
* under the License.</em>
 <a class="jxr_linenumber" name="20" href="#20">20</a>  <em class="jxr_comment">
*/</em>
 <a class="jxr_linenumber" name="21" href="#21">21</a>  
-<a class="jxr_linenumber" name="22" href="#22">22</a>  
-<a class="jxr_linenumber" name="23" href="#23">23</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="24" href="#24">24</a>  <em class="jxr_javadoccomment">
* Collection of XML encoding/decoding helpers. &lt;br&gt;</em>
-<a class="jxr_linenumber" name="25" href="#25">25</a>  <em class="jxr_javadoccomment">
* This is all about the special characters &amp;amp; and &amp;lt;, and for attributes</em>
-<a class="jxr_linenumber" name="26" href="#26">26</a>  <em class="jxr_javadoccomment">
* &amp;quot; and &amp;apos;. These must be encoded/decoded from/to XML.</em>
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <em class="jxr_javadoccomment">
*/</em>
-<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/maven/shared/utils/xml/XMLEncode.html">XMLEncode</a>
-<a class="jxr_linenumber" name="29" href="#29">29</a>  {
-<a class="jxr_linenumber" name="30" href="#30">30</a>  
-<a class="jxr_linenumber" name="31" href="#31">31</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong>
<strong class="jxr_keyword">int</strong> CDATA_BLOCK_THRESHOLD_LENGTH = 12;
-<a class="jxr_linenumber" name="32" href="#32">32</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong>
<strong class="jxr_keyword">char</strong> DEFAULT_QUOTE_CHAR = '&quot;';
-<a class="jxr_linenumber" name="33" href="#33">33</a>  
-<a class="jxr_linenumber" name="34" href="#34">34</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <em class="jxr_javadoccomment">
    * Checks if this text purely consists of the white space characters</em>
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <em class="jxr_javadoccomment">
    * ' ',  TAB, NEWLINE.</em>
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="38" href="#38">38</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong>
isWhiteSpace( String text )
-<a class="jxr_linenumber" name="39" href="#39">39</a>      {
-<a class="jxr_linenumber" name="40" href="#40">40</a>          <strong class="jxr_keyword">for</strong>(
<strong class="jxr_keyword">int</strong> i = 0; i &lt; text.length(); i++
)
-<a class="jxr_linenumber" name="41" href="#41">41</a>          {
-<a class="jxr_linenumber" name="42" href="#42">42</a>              <strong
class="jxr_keyword">char</strong> c = text.charAt( i );
-<a class="jxr_linenumber" name="43" href="#43">43</a>              <strong
class="jxr_keyword">if</strong> (!Character.isWhitespace( c )) {
+<a class="jxr_linenumber" name="22" href="#22">22</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="23" href="#23">23</a>  <em class="jxr_javadoccomment">
* Collection of XML encoding/decoding helpers. &lt;br&gt;</em>
+<a class="jxr_linenumber" name="24" href="#24">24</a>  <em class="jxr_javadoccomment">
* This is all about the special characters &amp;amp; and &amp;lt;, and for attributes</em>
+<a class="jxr_linenumber" name="25" href="#25">25</a>  <em class="jxr_javadoccomment">
* &amp;quot; and &amp;apos;. These must be encoded/decoded from/to XML.</em>
+<a class="jxr_linenumber" name="26" href="#26">26</a>  <em class="jxr_javadoccomment">
*/</em>
+<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/maven/shared/utils/xml/XMLEncode.html">XMLEncode</a>
+<a class="jxr_linenumber" name="28" href="#28">28</a>  {
+<a class="jxr_linenumber" name="29" href="#29">29</a>  
+<a class="jxr_linenumber" name="30" href="#30">30</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong>
<strong class="jxr_keyword">int</strong> CDATA_BLOCK_THRESHOLD_LENGTH = 12;
+<a class="jxr_linenumber" name="31" href="#31">31</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong>
<strong class="jxr_keyword">char</strong> DEFAULT_QUOTE_CHAR = '&quot;';
+<a class="jxr_linenumber" name="32" href="#32">32</a>  
+<a class="jxr_linenumber" name="33" href="#33">33</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="34" href="#34">34</a>  <em class="jxr_javadoccomment">
    * Checks if this text purely consists of the white space characters</em>
+<a class="jxr_linenumber" name="35" href="#35">35</a>  <em class="jxr_javadoccomment">
    * ' ',  TAB, NEWLINE.</em>
+<a class="jxr_linenumber" name="36" href="#36">36</a>  <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="37" href="#37">37</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong>
isWhiteSpace( String text )
+<a class="jxr_linenumber" name="38" href="#38">38</a>      {
+<a class="jxr_linenumber" name="39" href="#39">39</a>          <strong class="jxr_keyword">for</strong>
( <strong class="jxr_keyword">int</strong> i = 0; i &lt; text.length(); i++
)
+<a class="jxr_linenumber" name="40" href="#40">40</a>          {
+<a class="jxr_linenumber" name="41" href="#41">41</a>              <strong
class="jxr_keyword">char</strong> c = text.charAt( i );
+<a class="jxr_linenumber" name="42" href="#42">42</a>              <strong
class="jxr_keyword">if</strong> ( !Character.isWhitespace( c ) )
+<a class="jxr_linenumber" name="43" href="#43">43</a>              {
 <a class="jxr_linenumber" name="44" href="#44">44</a>                  <strong
class="jxr_keyword">return</strong> false;
 <a class="jxr_linenumber" name="45" href="#45">45</a>              }
 <a class="jxr_linenumber" name="46" href="#46">46</a>          }
@@ -62,7 +62,7 @@
 <a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="53" href="#53">53</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> String xmlEncodeTextForAttribute(
String text, <strong class="jxr_keyword">char</strong> quoteChar )
 <a class="jxr_linenumber" name="54" href="#54">54</a>      {
-<a class="jxr_linenumber" name="55" href="#55">55</a>          <strong class="jxr_keyword">if</strong>(
text == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="55" href="#55">55</a>          <strong class="jxr_keyword">if</strong>
( text == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="56" href="#56">56</a>          {
 <a class="jxr_linenumber" name="57" href="#57">57</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="58" href="#58">58</a>          }
@@ -74,21 +74,21 @@
 <a class="jxr_linenumber" name="64" href="#64">64</a>  <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="65" href="#65">65</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> String xmlEncodeText( String text
)
 <a class="jxr_linenumber" name="66" href="#66">66</a>      {
-<a class="jxr_linenumber" name="67" href="#67">67</a>          <strong class="jxr_keyword">if</strong>(
text == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="67" href="#67">67</a>          <strong class="jxr_keyword">if</strong>
( text == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="68" href="#68">68</a>          {
 <a class="jxr_linenumber" name="69" href="#69">69</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="70" href="#70">70</a>          }
-<a class="jxr_linenumber" name="71" href="#71">71</a>          <strong class="jxr_keyword">if</strong>(
!needsEncoding( text ) )
+<a class="jxr_linenumber" name="71" href="#71">71</a>          <strong class="jxr_keyword">if</strong>
( !needsEncoding( text ) )
 <a class="jxr_linenumber" name="72" href="#72">72</a>          {
 <a class="jxr_linenumber" name="73" href="#73">73</a>              <strong
class="jxr_keyword">return</strong> text;
 <a class="jxr_linenumber" name="74" href="#74">74</a>          }
 <a class="jxr_linenumber" name="75" href="#75">75</a>          <strong class="jxr_keyword">else</strong>
 <a class="jxr_linenumber" name="76" href="#76">76</a>          {
 <a class="jxr_linenumber" name="77" href="#77">77</a>              <em class="jxr_comment">//
only encode as cdata if is is longer than CDATA block overhead:</em>
-<a class="jxr_linenumber" name="78" href="#78">78</a>              <strong
class="jxr_keyword">if</strong>( text.length() &gt; CDATA_BLOCK_THRESHOLD_LENGTH
)
+<a class="jxr_linenumber" name="78" href="#78">78</a>              <strong
class="jxr_keyword">if</strong> ( text.length() &gt; CDATA_BLOCK_THRESHOLD_LENGTH
)
 <a class="jxr_linenumber" name="79" href="#79">79</a>              {
 <a class="jxr_linenumber" name="80" href="#80">80</a>                  String
cdata = xmlEncodeTextAsCDATABlock( text );
-<a class="jxr_linenumber" name="81" href="#81">81</a>                  <strong
class="jxr_keyword">if</strong>( cdata != <strong class="jxr_keyword">null</strong>
)
+<a class="jxr_linenumber" name="81" href="#81">81</a>                  <strong
class="jxr_keyword">if</strong> ( cdata != <strong class="jxr_keyword">null</strong>
)
 <a class="jxr_linenumber" name="82" href="#82">82</a>                  {
 <a class="jxr_linenumber" name="83" href="#83">83</a>                      <strong
class="jxr_keyword">return</strong> cdata;
 <a class="jxr_linenumber" name="84" href="#84">84</a>                  }
@@ -103,7 +103,7 @@
 <a class="jxr_linenumber" name="93" href="#93">93</a>  <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="94" href="#94">94</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> String xmlEncodeTextAsPCDATA( String
text )
 <a class="jxr_linenumber" name="95" href="#95">95</a>      {
-<a class="jxr_linenumber" name="96" href="#96">96</a>          <strong class="jxr_keyword">if</strong>(
text == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="96" href="#96">96</a>          <strong class="jxr_keyword">if</strong>
( text == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="97" href="#97">97</a>          {
 <a class="jxr_linenumber" name="98" href="#98">98</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="99" href="#99">99</a>          }
@@ -130,16 +130,16 @@
 <a class="jxr_linenumber" name="120" href="#120">120</a> <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="121" href="#121">121</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> String xmlEncodeTextAsPCDATA( String
text, <strong class="jxr_keyword">boolean</strong> forAttribute, <strong class="jxr_keyword">char</strong>
quoteChar )
 <a class="jxr_linenumber" name="122" href="#122">122</a>     {
-<a class="jxr_linenumber" name="123" href="#123">123</a>         <strong class="jxr_keyword">if</strong>(
text == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="123" href="#123">123</a>         <strong class="jxr_keyword">if</strong>
( text == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="124" href="#124">124</a>         {
 <a class="jxr_linenumber" name="125" href="#125">125</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="126" href="#126">126</a>         }
 <a class="jxr_linenumber" name="127" href="#127">127</a>         <strong class="jxr_keyword">char</strong>
c;
 <a class="jxr_linenumber" name="128" href="#128">128</a>         StringBuilder
n = <strong class="jxr_keyword">new</strong> StringBuilder( text.length() * 2
);
-<a class="jxr_linenumber" name="129" href="#129">129</a>         <strong class="jxr_keyword">for</strong>(
<strong class="jxr_keyword">int</strong> i = 0; i &lt; text.length(); i++
)
+<a class="jxr_linenumber" name="129" href="#129">129</a>         <strong class="jxr_keyword">for</strong>
( <strong class="jxr_keyword">int</strong> i = 0; i &lt; text.length(); i++
)
 <a class="jxr_linenumber" name="130" href="#130">130</a>         {
 <a class="jxr_linenumber" name="131" href="#131">131</a>             c = text.charAt(
i );
-<a class="jxr_linenumber" name="132" href="#132">132</a>             <strong
class="jxr_keyword">switch</strong>( c )
+<a class="jxr_linenumber" name="132" href="#132">132</a>             <strong
class="jxr_keyword">switch</strong> ( c )
 <a class="jxr_linenumber" name="133" href="#133">133</a>             {
 <a class="jxr_linenumber" name="134" href="#134">134</a>                 <strong
class="jxr_keyword">case</strong> '&amp;':
 <a class="jxr_linenumber" name="135" href="#135">135</a>                    
n.append( <span class="jxr_string">"&amp;amp;"</span> );
@@ -151,7 +151,7 @@
 <a class="jxr_linenumber" name="141" href="#141">141</a>                    
n.append( <span class="jxr_string">"&amp;gt;"</span> );
 <a class="jxr_linenumber" name="142" href="#142">142</a>                    
<strong class="jxr_keyword">break</strong>;
 <a class="jxr_linenumber" name="143" href="#143">143</a>                 <strong
class="jxr_keyword">case</strong> '&quot;':
-<a class="jxr_linenumber" name="144" href="#144">144</a>                    
<strong class="jxr_keyword">if</strong>( forAttribute )
+<a class="jxr_linenumber" name="144" href="#144">144</a>                    
<strong class="jxr_keyword">if</strong> ( forAttribute )
 <a class="jxr_linenumber" name="145" href="#145">145</a>                    
{
 <a class="jxr_linenumber" name="146" href="#146">146</a>                    
    n.append( <span class="jxr_string">"&amp;quot;"</span> );
 <a class="jxr_linenumber" name="147" href="#147">147</a>                    
}
@@ -161,7 +161,7 @@
 <a class="jxr_linenumber" name="151" href="#151">151</a>                    
}
 <a class="jxr_linenumber" name="152" href="#152">152</a>                    
<strong class="jxr_keyword">break</strong>;
 <a class="jxr_linenumber" name="153" href="#153">153</a>                 <strong
class="jxr_keyword">case</strong> '\'':
-<a class="jxr_linenumber" name="154" href="#154">154</a>                    
<strong class="jxr_keyword">if</strong>( forAttribute )
+<a class="jxr_linenumber" name="154" href="#154">154</a>                    
<strong class="jxr_keyword">if</strong> ( forAttribute )
 <a class="jxr_linenumber" name="155" href="#155">155</a>                    
{
 <a class="jxr_linenumber" name="156" href="#156">156</a>                    
    n.append( <span class="jxr_string">"&amp;apos;"</span> );
 <a class="jxr_linenumber" name="157" href="#157">157</a>                    
}
@@ -173,7 +173,7 @@
 <a class="jxr_linenumber" name="163" href="#163">163</a>                 <strong
class="jxr_keyword">case</strong> '\r':
 <a class="jxr_linenumber" name="164" href="#164">164</a>                    
<strong class="jxr_keyword">if</strong> ( forAttribute )
 <a class="jxr_linenumber" name="165" href="#165">165</a>                    
{
-<a class="jxr_linenumber" name="166" href="#166">166</a>                    
    <strong class="jxr_keyword">if</strong> ( i == text.length() || text.charAt(
i + 1 ) != '\n')
+<a class="jxr_linenumber" name="166" href="#166">166</a>                    
    <strong class="jxr_keyword">if</strong> ( i == text.length() || text.charAt(
i + 1 ) != '\n' )
 <a class="jxr_linenumber" name="167" href="#167">167</a>                    
    {
 <a class="jxr_linenumber" name="168" href="#168">168</a>                    
        n.append( <span class="jxr_string">"&amp;#13;"</span> );
 <a class="jxr_linenumber" name="169" href="#169">169</a>                    
    }
@@ -201,7 +201,7 @@
 <a class="jxr_linenumber" name="191" href="#191">191</a>             }
 <a class="jxr_linenumber" name="192" href="#192">192</a>         }
 <a class="jxr_linenumber" name="193" href="#193">193</a> 
-<a class="jxr_linenumber" name="194" href="#194">194</a>         <strong class="jxr_keyword">if</strong>(
forAttribute )
+<a class="jxr_linenumber" name="194" href="#194">194</a>         <strong class="jxr_keyword">if</strong>
( forAttribute )
 <a class="jxr_linenumber" name="195" href="#195">195</a>         {
 <a class="jxr_linenumber" name="196" href="#196">196</a>             n.append(
quoteChar );
 <a class="jxr_linenumber" name="197" href="#197">197</a>             n.insert(
0, quoteChar );
@@ -215,11 +215,11 @@
 <a class="jxr_linenumber" name="205" href="#205">205</a> <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="206" href="#206">206</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> String xmlEncodeTextAsCDATABlock(
String text )
 <a class="jxr_linenumber" name="207" href="#207">207</a>     {
-<a class="jxr_linenumber" name="208" href="#208">208</a>         <strong class="jxr_keyword">if</strong>(
text == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="208" href="#208">208</a>         <strong class="jxr_keyword">if</strong>
( text == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="209" href="#209">209</a>         {
 <a class="jxr_linenumber" name="210" href="#210">210</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="211" href="#211">211</a>         }
-<a class="jxr_linenumber" name="212" href="#212">212</a>         <strong class="jxr_keyword">if</strong>(
isCompatibleWithCDATABlock( text ) )
+<a class="jxr_linenumber" name="212" href="#212">212</a>         <strong class="jxr_keyword">if</strong>
( isCompatibleWithCDATABlock( text ) )
 <a class="jxr_linenumber" name="213" href="#213">213</a>         {
 <a class="jxr_linenumber" name="214" href="#214">214</a>             <strong
class="jxr_keyword">return</strong> <span class="jxr_string">"&lt;![CDATA["</span>
+ text + <span class="jxr_string">"]]&gt;"</span>;
 <a class="jxr_linenumber" name="215" href="#215">215</a>         }
@@ -245,15 +245,15 @@
 <a class="jxr_linenumber" name="235" href="#235">235</a> <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="236" href="#236">236</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong>
needsEncoding( String data, <strong class="jxr_keyword">boolean</strong> checkForAttr
)
 <a class="jxr_linenumber" name="237" href="#237">237</a>     {
-<a class="jxr_linenumber" name="238" href="#238">238</a>         <strong class="jxr_keyword">if</strong>(
data == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="238" href="#238">238</a>         <strong class="jxr_keyword">if</strong>
( data == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="239" href="#239">239</a>         {
 <a class="jxr_linenumber" name="240" href="#240">240</a>             <strong
class="jxr_keyword">return</strong> false;
 <a class="jxr_linenumber" name="241" href="#241">241</a>         }
 <a class="jxr_linenumber" name="242" href="#242">242</a>         <strong class="jxr_keyword">char</strong>
c;
-<a class="jxr_linenumber" name="243" href="#243">243</a>         <strong class="jxr_keyword">for</strong>(
<strong class="jxr_keyword">int</strong> i = 0; i &lt; data.length(); i++
)
+<a class="jxr_linenumber" name="243" href="#243">243</a>         <strong class="jxr_keyword">for</strong>
( <strong class="jxr_keyword">int</strong> i = 0; i &lt; data.length(); i++
)
 <a class="jxr_linenumber" name="244" href="#244">244</a>         {
 <a class="jxr_linenumber" name="245" href="#245">245</a>             c = data.charAt(
i );
-<a class="jxr_linenumber" name="246" href="#246">246</a>             <strong
class="jxr_keyword">if</strong>( c == '&amp;' || c == '&lt;' || (checkForAttr
&amp;&amp; (c == '&quot;' || c == '\'')) )
+<a class="jxr_linenumber" name="246" href="#246">246</a>             <strong
class="jxr_keyword">if</strong> ( c == '&amp;' || c == '&lt;' || ( checkForAttr
&amp;&amp; ( c == '&quot;' || c == '\'' ) ) )
 <a class="jxr_linenumber" name="247" href="#247">247</a>             {
 <a class="jxr_linenumber" name="248" href="#248">248</a>                 <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
 <a class="jxr_linenumber" name="249" href="#249">249</a>             }
@@ -266,7 +266,7 @@
 <a class="jxr_linenumber" name="256" href="#256">256</a> <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="257" href="#257">257</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong>
isCompatibleWithCDATABlock( String text )
 <a class="jxr_linenumber" name="258" href="#258">258</a>     {
-<a class="jxr_linenumber" name="259" href="#259">259</a>         <strong class="jxr_keyword">return</strong>
text != <strong class="jxr_keyword">null</strong> &amp;&amp; (!text.contains(<span
class="jxr_string">"]]&gt;"</span>));
+<a class="jxr_linenumber" name="259" href="#259">259</a>         <strong class="jxr_keyword">return</strong>
text != <strong class="jxr_keyword">null</strong> &amp;&amp; ( !text.contains(
<span class="jxr_string">"]]&gt;"</span> ) );
 <a class="jxr_linenumber" name="260" href="#260">260</a>     }
 <a class="jxr_linenumber" name="261" href="#261">261</a> 
 <a class="jxr_linenumber" name="262" href="#262">262</a>     <em class="jxr_javadoccomment">/**</em>
@@ -275,16 +275,16 @@
 <a class="jxr_linenumber" name="265" href="#265">265</a> <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="266" href="#266">266</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> String xmlDecodeTextToCDATA( String
pcdata )
 <a class="jxr_linenumber" name="267" href="#267">267</a>     {
-<a class="jxr_linenumber" name="268" href="#268">268</a>         <strong class="jxr_keyword">if</strong>(
pcdata == <strong class="jxr_keyword">null</strong> )
+<a class="jxr_linenumber" name="268" href="#268">268</a>         <strong class="jxr_keyword">if</strong>
( pcdata == <strong class="jxr_keyword">null</strong> )
 <a class="jxr_linenumber" name="269" href="#269">269</a>         {
 <a class="jxr_linenumber" name="270" href="#270">270</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="271" href="#271">271</a>         }
 <a class="jxr_linenumber" name="272" href="#272">272</a>         <strong class="jxr_keyword">char</strong>
c, c1, c2, c3, c4, c5;
 <a class="jxr_linenumber" name="273" href="#273">273</a>         StringBuilder
n = <strong class="jxr_keyword">new</strong> StringBuilder( pcdata.length() );
-<a class="jxr_linenumber" name="274" href="#274">274</a>         <strong class="jxr_keyword">for</strong>(
<strong class="jxr_keyword">int</strong> i = 0; i &lt; pcdata.length(); i++
)
+<a class="jxr_linenumber" name="274" href="#274">274</a>         <strong class="jxr_keyword">for</strong>
( <strong class="jxr_keyword">int</strong> i = 0; i &lt; pcdata.length();
i++ )
 <a class="jxr_linenumber" name="275" href="#275">275</a>         {
 <a class="jxr_linenumber" name="276" href="#276">276</a>             c = pcdata.charAt(
i );
-<a class="jxr_linenumber" name="277" href="#277">277</a>             <strong
class="jxr_keyword">if</strong>( c == '&amp;' )
+<a class="jxr_linenumber" name="277" href="#277">277</a>             <strong
class="jxr_keyword">if</strong> ( c == '&amp;' )
 <a class="jxr_linenumber" name="278" href="#278">278</a>             {
 <a class="jxr_linenumber" name="279" href="#279">279</a>                 c1 =
lookAhead( 1, i, pcdata );
 <a class="jxr_linenumber" name="280" href="#280">280</a>                 c2 =
lookAhead( 2, i, pcdata );
@@ -292,27 +292,27 @@
 <a class="jxr_linenumber" name="282" href="#282">282</a>                 c4 =
lookAhead( 4, i, pcdata );
 <a class="jxr_linenumber" name="283" href="#283">283</a>                 c5 =
lookAhead( 5, i, pcdata );
 <a class="jxr_linenumber" name="284" href="#284">284</a> 
-<a class="jxr_linenumber" name="285" href="#285">285</a>                 <strong
class="jxr_keyword">if</strong>( c1 == 'a' &amp;&amp; c2 == 'm' &amp;&amp;
c3 == 'p' &amp;&amp; c4 == ';' )
+<a class="jxr_linenumber" name="285" href="#285">285</a>                 <strong
class="jxr_keyword">if</strong> ( c1 == 'a' &amp;&amp; c2 == 'm' &amp;&amp;
c3 == 'p' &amp;&amp; c4 == ';' )
 <a class="jxr_linenumber" name="286" href="#286">286</a>                 {
 <a class="jxr_linenumber" name="287" href="#287">287</a>                    
n.append( <span class="jxr_string">"&amp;"</span> );
 <a class="jxr_linenumber" name="288" href="#288">288</a>                    
i += 4;
 <a class="jxr_linenumber" name="289" href="#289">289</a>                 }
-<a class="jxr_linenumber" name="290" href="#290">290</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>(
c1 == 'l' &amp;&amp; c2 == 't' &amp;&amp; c3 == ';' )
+<a class="jxr_linenumber" name="290" href="#290">290</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
( c1 == 'l' &amp;&amp; c2 == 't' &amp;&amp; c3 == ';' )
 <a class="jxr_linenumber" name="291" href="#291">291</a>                 {
 <a class="jxr_linenumber" name="292" href="#292">292</a>                    
n.append( <span class="jxr_string">"&lt;"</span> );
 <a class="jxr_linenumber" name="293" href="#293">293</a>                    
i += 3;
 <a class="jxr_linenumber" name="294" href="#294">294</a>                 }
-<a class="jxr_linenumber" name="295" href="#295">295</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>(
c1 == 'g' &amp;&amp; c2 == 't' &amp;&amp; c3 == ';' )
+<a class="jxr_linenumber" name="295" href="#295">295</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
( c1 == 'g' &amp;&amp; c2 == 't' &amp;&amp; c3 == ';' )
 <a class="jxr_linenumber" name="296" href="#296">296</a>                 {
 <a class="jxr_linenumber" name="297" href="#297">297</a>                    
n.append( <span class="jxr_string">"&gt;"</span> );
 <a class="jxr_linenumber" name="298" href="#298">298</a>                    
i += 3;
 <a class="jxr_linenumber" name="299" href="#299">299</a>                 }
-<a class="jxr_linenumber" name="300" href="#300">300</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>(
c1 == 'q' &amp;&amp; c2 == 'u' &amp;&amp; c3 == 'o' &amp;&amp; c4
== 't' &amp;&amp; c5 == ';' )
+<a class="jxr_linenumber" name="300" href="#300">300</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
( c1 == 'q' &amp;&amp; c2 == 'u' &amp;&amp; c3 == 'o' &amp;&amp; c4
== 't' &amp;&amp; c5 == ';' )
 <a class="jxr_linenumber" name="301" href="#301">301</a>                 {
 <a class="jxr_linenumber" name="302" href="#302">302</a>                    
n.append( <span class="jxr_string">"\&quot;"</span> );
 <a class="jxr_linenumber" name="303" href="#303">303</a>                    
i += 5;
 <a class="jxr_linenumber" name="304" href="#304">304</a>                 }
-<a class="jxr_linenumber" name="305" href="#305">305</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>(
c1 == 'a' &amp;&amp; c2 == 'p' &amp;&amp; c3 == 'o' &amp;&amp; c4
== 's' &amp;&amp; c5 == ';' )
+<a class="jxr_linenumber" name="305" href="#305">305</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
( c1 == 'a' &amp;&amp; c2 == 'p' &amp;&amp; c3 == 'o' &amp;&amp; c4
== 's' &amp;&amp; c5 == ';' )
 <a class="jxr_linenumber" name="306" href="#306">306</a>                 {
 <a class="jxr_linenumber" name="307" href="#307">307</a>                    
n.append( <span class="jxr_string">"'"</span> );
 <a class="jxr_linenumber" name="308" href="#308">308</a>                    
i += 5;
@@ -336,7 +336,7 @@
 <a class="jxr_linenumber" name="326" href="#326">326</a>         {
 <a class="jxr_linenumber" name="327" href="#327">327</a>             <strong
class="jxr_keyword">return</strong> data.charAt( offset + la );
 <a class="jxr_linenumber" name="328" href="#328">328</a>         }
-<a class="jxr_linenumber" name="329" href="#329">329</a>         <strong class="jxr_keyword">catch</strong>(
StringIndexOutOfBoundsException e )
+<a class="jxr_linenumber" name="329" href="#329">329</a>         <strong class="jxr_keyword">catch</strong>
( StringIndexOutOfBoundsException e )
 <a class="jxr_linenumber" name="330" href="#330">330</a>         {
 <a class="jxr_linenumber" name="331" href="#331">331</a>             <strong
class="jxr_keyword">return</strong> 0x0;
 <a class="jxr_linenumber" name="332" href="#332">332</a>         }
@@ -345,24 +345,25 @@
 <a class="jxr_linenumber" name="335" href="#335">335</a>     <em class="jxr_comment">//
combine multiple checks in one methods for speed</em>
 <a class="jxr_linenumber" name="336" href="#336">336</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong>
contains( String text, <strong class="jxr_keyword">char</strong>[] chars )
 <a class="jxr_linenumber" name="337" href="#337">337</a>     {
-<a class="jxr_linenumber" name="338" href="#338">338</a>         <strong class="jxr_keyword">if</strong>(
text == <strong class="jxr_keyword">null</strong> || chars == <strong class="jxr_keyword">null</strong>
|| chars.length == 0 )
+<a class="jxr_linenumber" name="338" href="#338">338</a>         <strong class="jxr_keyword">if</strong>
( text == <strong class="jxr_keyword">null</strong> || chars == <strong class="jxr_keyword">null</strong>
|| chars.length == 0 )
 <a class="jxr_linenumber" name="339" href="#339">339</a>         {
 <a class="jxr_linenumber" name="340" href="#340">340</a>             <strong
class="jxr_keyword">return</strong> false;
 <a class="jxr_linenumber" name="341" href="#341">341</a>         }
-<a class="jxr_linenumber" name="342" href="#342">342</a>         <strong class="jxr_keyword">for</strong>(
<strong class="jxr_keyword">int</strong> i = 0; i &lt; text.length(); i++
)
+<a class="jxr_linenumber" name="342" href="#342">342</a>         <strong class="jxr_keyword">for</strong>
( <strong class="jxr_keyword">int</strong> i = 0; i &lt; text.length(); i++
)
 <a class="jxr_linenumber" name="343" href="#343">343</a>         {
 <a class="jxr_linenumber" name="344" href="#344">344</a>             <strong
class="jxr_keyword">char</strong> c = text.charAt( i );
-<a class="jxr_linenumber" name="345" href="#345">345</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">char</strong>
aChar : chars) {
-<a class="jxr_linenumber" name="346" href="#346">346</a>                 <strong
class="jxr_keyword">if</strong> (aChar == c) {
-<a class="jxr_linenumber" name="347" href="#347">347</a>                    
<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="348" href="#348">348</a>                 }
-<a class="jxr_linenumber" name="349" href="#349">349</a>             }
-<a class="jxr_linenumber" name="350" href="#350">350</a>         }
-<a class="jxr_linenumber" name="351" href="#351">351</a>         <strong class="jxr_keyword">return</strong>
false;
-<a class="jxr_linenumber" name="352" href="#352">352</a>     }
-<a class="jxr_linenumber" name="353" href="#353">353</a> 
-<a class="jxr_linenumber" name="354" href="#354">354</a> }
+<a class="jxr_linenumber" name="345" href="#345">345</a>             <strong
class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">char</strong>
aChar : chars )
+<a class="jxr_linenumber" name="346" href="#346">346</a>             {
+<a class="jxr_linenumber" name="347" href="#347">347</a>                 <strong
class="jxr_keyword">if</strong> ( aChar == c )
+<a class="jxr_linenumber" name="348" href="#348">348</a>                 {
+<a class="jxr_linenumber" name="349" href="#349">349</a>                    
<strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="350" href="#350">350</a>                 }
+<a class="jxr_linenumber" name="351" href="#351">351</a>             }
+<a class="jxr_linenumber" name="352" href="#352">352</a>         }
+<a class="jxr_linenumber" name="353" href="#353">353</a>         <strong class="jxr_keyword">return</strong>
false;
+<a class="jxr_linenumber" name="354" href="#354">354</a>     }
+<a class="jxr_linenumber" name="355" href="#355">355</a> 
+<a class="jxr_linenumber" name="356" href="#356">356</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-

Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XMLWriter.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XMLWriter.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XMLWriter.html
Fri Dec 21 04:53:01 2012
@@ -95,4 +95,3 @@
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-

Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlReaderException.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlReaderException.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlReaderException.html
Fri Dec 21 04:53:01 2012
@@ -173,4 +173,3 @@
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-

Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamReader.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamReader.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamReader.html
Fri Dec 21 04:53:01 2012
@@ -129,4 +129,3 @@
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-

Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamReaderException.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamReaderException.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamReaderException.html
Fri Dec 21 04:53:01 2012
@@ -85,4 +85,3 @@
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-

Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamWriter.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamWriter.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlStreamWriter.html
Fri Dec 21 04:53:01 2012
@@ -54,4 +54,3 @@
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-

Modified: websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlWriterUtil.html
==============================================================================
--- websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlWriterUtil.html
(original)
+++ websites/production/maven/content/shared/maven-shared-utils/xref/org/apache/maven/shared/utils/xml/XmlWriterUtil.html
Fri Dec 21 04:53:01 2012
@@ -353,4 +353,3 @@
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>
-



Mime
View raw message