incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r795152 - /websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html
Date Fri, 02 Sep 2011 08:39:46 GMT
Author: buildbot
Date: Fri Sep  2 08:39:46 2011
New Revision: 795152

Log:
Staging update by buildbot

Modified:
    websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/demo/demo10.html Fri Sep 
2 08:39:46 2011
@@ -91,7 +91,7 @@
 <p><strong>Code Introduction</strong></p>
 <p>There code of this demo is very clear. Firstly, we open the data source and create
a text document. Secondly, we create paragraph for each line. Thirdly, we set different style
for different content. Then we do spell and security check with the help of Navigation API.
Comments are given if suspicious words are found.  Finally, the new created document is saved.<br
/>
 </p>
-<div class="codehilite"><pre>        <span class="n">BufferedReader</span>
<span class="n">reader</span> <span class="o">=</span> <span class="k">new</span>
<span class="n">BufferedReader</span><span class="p">(</span><span
class="k">new</span> <span class="n">InputStreamReader</span><span
class="p">(</span><span class="n">FormatParagraphDemo</span><span
class="o">.</span><span class="n">class</span><span class="o">.</span><span
class="n">getResourceAsStream</span><span class="p">(</span><span
class="s">&quot;text.txt&quot;</span><span class="p">)));</span>
+<div class="codehilite"><pre>        <span class="n">BufferedReader</span>
<span class="n">reader</span> <span class="o">=</span> <span class="k">new</span>
<span class="n">BufferedReader</span><span class="p">(</span><span
class="k">new</span> <span class="n">InputStreamReader</span><span
class="p">(</span><span class="n">this</span><span class="o">.</span><span
class="n">class</span><span class="o">.</span><span class="n">getResourceAsStream</span><span
class="p">(</span><span class="s">&quot;text.txt&quot;</span><span
class="p">)));</span>
         <span class="n">String</span> <span class="n">in</span> <span
class="o">=</span> <span class="n">reader</span><span class="o">.</span><span
class="n">readLine</span><span class="p">();</span>
         <span class="n">TextDocument</span> <span class="n">doc</span>
<span class="o">=</span> <span class="n">TextDocument</span><span
class="o">.</span><span class="n">newTextDocument</span><span class="p">();</span>
         <span class="nb">int</span> <span class="n">lineCount</span>
<span class="o">=</span> <span class="mi">0</span><span class="p">;</span>



Mime
View raw message