|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.fop.apps.Fop
Primary class that activates the FOP process for embedded usage.
JAXP is the standard method of embedding FOP in Java programs. Please check our embedding page for samples (these are also available within the distribution in FOP_DIR\examples\embedding)
Methods within FOUserAgent are available to customize portions of the process. For example, a specific Renderer object can be specified, also ElementMappings which determine elements in the FO that can be processed) can be added.
At the moment, it is recommended not to reuse an instance of this class for more than one rendering run.
Constructor Summary | |
Fop(java.lang.String outputFormat)
Deprecated. End-users should use FopFactory.newFop(String) instead!
This constructor will become invisible with FOP 1.0. |
|
Fop(java.lang.String outputFormat,
FOUserAgent ua)
Deprecated. End-users should use FopFactory.newFop(String, FOUserAgent) instead!
This constructor will become invisible with FOP 1.0. |
|
Fop(java.lang.String outputFormat,
FOUserAgent ua,
java.io.OutputStream stream)
Deprecated. End-users should use FopFactory.newFop(String, FOUserAgent, OutputStream)
instead! This constructor will become invisible with FOP 1.0. |
Method Summary | |
org.xml.sax.helpers.DefaultHandler |
getDefaultHandler()
Returns the DefaultHandler object used to generate the document. |
FormattingResults |
getResults()
Returns the results of the rendering process. |
FOUserAgent |
getUserAgent()
Get the FOUserAgent instance for this process |
static java.lang.String |
getVersion()
Deprecated. Use Version.getVersion() instead!
This method will be removed with FOP 1.0. |
void |
setOutputStream(java.io.OutputStream stream)
Deprecated. Use one of the factory methods on FopFactory with an OutputStream
parameter instead. This method will be removed with FOP 1.0. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Fop(java.lang.String outputFormat, FOUserAgent ua, java.io.OutputStream stream) throws FOPException
FopFactory.newFop(String, FOUserAgent, OutputStream)
instead! This constructor will become invisible with FOP 1.0.
outputFormat
- the MIME type of the output format to use (ex. "application/pdf").ua
- FOUserAgent objectstream
- the output stream
FOPException
- if setting up the DefaultHandler failspublic Fop(java.lang.String outputFormat, FOUserAgent ua) throws FOPException
FopFactory.newFop(String, FOUserAgent)
instead!
This constructor will become invisible with FOP 1.0.
outputFormat
- the MIME type of the output format to use (ex. "application/pdf").ua
- FOUserAgent object
FOPException
- if setting up the DefaultHandler failspublic Fop(java.lang.String outputFormat)
FopFactory.newFop(String)
instead!
This constructor will become invisible with FOP 1.0.
outputFormat
- the MIME type of the output format to use (ex. "application/pdf").Method Detail |
public FOUserAgent getUserAgent()
public void setOutputStream(java.io.OutputStream stream)
FopFactory
with an OutputStream
parameter instead. This method will be removed with FOP 1.0.
stream
- the stream to output the result of rendering topublic org.xml.sax.helpers.DefaultHandler getDefaultHandler() throws FOPException
FOPException
- if setting up the DefaultHandler failspublic FormattingResults getResults()
public static java.lang.String getVersion()
Version.getVersion()
instead!
This method will be removed with FOP 1.0.
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |