xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r877812 - in /websites/staging/xmlgraphics/trunk/content: ./ fop/trunk/embedding.html
Date Mon, 09 Sep 2013 15:30:26 GMT
Author: buildbot
Date: Mon Sep  9 15:30:26 2013
New Revision: 877812

Log:
Staging update by buildbot for xmlgraphics

Modified:
    websites/staging/xmlgraphics/trunk/content/   (props changed)
    websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html

Propchange: websites/staging/xmlgraphics/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Sep  9 15:30:26 2013
@@ -1 +1 @@
-1521153
+1521159

Modified: websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html Mon Sep  9 15:30:26
2013
@@ -523,15 +523,13 @@ $(document).ready(function () {
 <h3 id="fop-factory">Customizing the FopFactory</h3>
 <p>The FopFactory holds configuration data and references to objects which are reusable
over multiple rendering runs. It's important to instantiate it only once (except in special
environments) and reuse it every time to create new FOUserAgent and Fop instances.</p>
 <p>The FopFactoryBuilder is used to construct a FopFactory object. This builder can
be used to set configuration values which will determine the behaviour of the FopFactory object.
To create the FopFactoryBuilder the following line can be used as a precursor for the following
examples:</p>
-<div class="codehilite"><pre>    <span class="p">:::</span><span
class="n">java</span>
-    <span class="n">FopFactoryBuilder</span> <span class="n">builder</span>
<span class="p">=</span> <span class="n">new</span> <span class="n">FopFactoryBuilder</span><span
class="p">(</span><span class="n">baseURI</span><span class="p">);</span>
+<div class="codehilite"><pre><span class="n">FopFactoryBuilder</span>
<span class="n">builder</span> <span class="o">=</span> <span class="k">new</span>
<span class="n">FopFactoryBuilder</span><span class="o">(</span><span
class="n">baseURI</span><span class="o">);</span>
 </pre></div>
 
 
-<p>A <strong>URIResolver</strong> for custom URI resolution can be set
against the FopFactoryBuilder. By supplying a JAXP URIResolver you can add custom URI resolution
functionality to FOP. For example:</p>
-<div class="codehilite"><pre>    <span class="p">:::</span><span
class="n">java</span>
-    <span class="o">//</span> <span class="n">myResourceResolver</span>
<span class="n">is</span> <span class="n">a</span> <span class="n">org</span><span
class="p">.</span><span class="n">apache</span><span class="p">.</span><span
class="n">xmlgraphics</span><span class="p">.</span><span class="n">io</span><span
class="p">.</span><span class="n">ResourceResolver</span>
-    <span class="n">FopFactoryBuilder</span> <span class="n">builder</span>
<span class="p">=</span> <span class="n">new</span> <span class="n">FopFactoryBuilder</span><span
class="p">(</span><span class="n">baseURI</span><span class="p">,</span>
<span class="n">myResourceResolver</span><span class="p">);</span>
+<p>Set a <strong>URIResolver</strong> for custom URI resolution. By supplying
a JAXP URIResolver you can add custom URI resolution functionality to FOP. For example:</p>
+<div class="codehilite"><pre><span class="c1">// myResourceResolver is
a org.apache.xmlgraphics.io.ResourceResolver</span>
+<span class="n">FopFactoryBuilder</span> <span class="n">builder</span>
<span class="o">=</span> <span class="k">new</span> <span class="n">FopFactoryBuilder</span><span
class="o">(</span><span class="n">baseURI</span><span class="o">,</span>
<span class="n">myResourceResolver</span><span class="o">);</span>
 </pre></div>
 
 
@@ -559,8 +557,7 @@ $(document).ready(function () {
 </li>
 </ul>
 <p>The following example shows how a FopFactory is created using the settings specified:</p>
-<div class="codehilite"><pre>    <span class="p">:::</span><span
class="n">java</span>
-    <span class="n">FopFactory</span> <span class="n">fopFactory</span>
<span class="p">=</span> <span class="n">builder</span><span class="p">.</span><span
class="n">build</span><span class="p">();</span>
+<div class="codehilite"><pre><span class="n">FopFactory</span> <span
class="n">fopFactory</span> <span class="o">=</span> <span class="n">builder</span><span
class="o">.</span><span class="na">build</span><span class="o">();</span>
 </pre></div>
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message