Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

sosc::FopTool Class Reference

List of all members.

Static Public Methods

void toPDF (String xmlData, String xslPath, OutputStream out) throws Exception
void toPDF (Source xmlSource, Source xslSource, OutputStream out) throws Exception
void render (String xmlData, String xslPath, OutputStream out, int renderMode) throws Exception
void render (Source xmlSource, Source xslSource, OutputStream out, int renderMode) throws Exception

Static Public Attributes

final int RENDER_PDF = Driver.RENDER_PDF
final int RENDER_PS = Driver.RENDER_PS

Member Function Documentation

void sosc::FopTool::render Source    xmlSource,
Source    xslSource,
OutputStream    out,
int    renderMode
throws Exception [inline, static]
 

Calls the FOP Driver and transforms the specified XML source using the given XSL stylesheet source. The output is sent to the given destination. The type of rendering (pdf, ps, awt, etc) is dictacted by the renderMode.

Parameters:
xmlSource  The XML data to be transformed.
xslSource  The XSL stylesheet used to transform the XML.
out  Where the rendered document should be written.
renderMode  The type of output to be generated. See the RENDER_* fields or org.apache.fop.apps.Driver.RENDER_*

Definition at line 113 of file FopTool.java.

void sosc::FopTool::render String    xmlData,
String    xslPath,
OutputStream    out,
int    renderMode
throws Exception [inline, static]
 

Calls the FOP Driver and transforms the specified XML source using the given XSL stylesheet source. The output is sent to the given destination. The type of rendering (pdf, ps, awt, etc) is dictacted by the renderMode.

Parameters:
xmlData  XML data as a String. Not a path to an XML file!
xslSource  Pathname of the XSL stylesheet.
out  Where the rendered document should be written.
renderMode  The type of output to be generated. See the RENDER_* fields or org.apache.fop.apps.Driver.RENDER_*

Definition at line 94 of file FopTool.java.

Referenced by sosc::FopTool::toPDF().

void sosc::FopTool::toPDF Source    xmlSource,
Source    xslSource,
OutputStream    out
throws Exception [inline, static]
 

Deprecated:
Use render manually with the RENDER_PDF argument.

Definition at line 62 of file FopTool.java.

References sosc::FopTool::render(), and sosc::FopTool::RENDER_PDF.

void sosc::FopTool::toPDF String    xmlData,
String    xslPath,
OutputStream    out
throws Exception [inline, static]
 

Deprecated:
Use render manually with the RENDER_PDF argument.

Definition at line 47 of file FopTool.java.

References sosc::FopTool::render(), and sosc::FopTool::RENDER_PDF.


Member Data Documentation

final int sosc::FopTool::RENDER_PDF = Driver.RENDER_PDF [static]
 

PDF Render type. See org.apache.fop.apps.Driver.RENDER_* for all applicable values.

Definition at line 40 of file FopTool.java.

Referenced by sosc::FopTool::toPDF().

final int sosc::FopTool::RENDER_PS = Driver.RENDER_PS [static]
 

PostScript Render type. See org.apache.fop.apps.Driver.RENDER_* for all applicable values.

Definition at line 42 of file FopTool.java.


The documentation for this class was generated from the following file:
Generated on Mon Jul 14 17:19:22 2003 for SOSC by doxygen1.2.15