|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lunasil.xf.XincFormatter
The Xinc Formatting API.
Field Summary | |
static String |
RENDERER_DEFAULT
|
static String |
RENDERER_PDF
|
static String |
RENDERER_PRINT
|
static String |
RENDERER_XML
|
Constructor Summary | |
XincFormatter()
Default Constructor. |
Method Summary | |
void |
format(InputSource src,
OutputStream outputStream)
Format a document. |
void |
format(InputSource docSource,
Source styleSource,
OutputStream outputStream)
Format a document. |
void |
format(String docUrl,
String styleUrl,
OutputStream outputStream)
Format a document. |
void |
format(String docUrl,
String styleUrl,
String outputFileName)
Format a document. |
Document |
getConfiguration()
Get the current Configuration. |
static org.apache.commons.logging.Log |
getLogger()
Get the Log instance currently in effect for Xinc. |
String |
getRenderer()
Returns the current Renderer setting. |
List |
getWarnings()
Deprecated. This method will be removed in some future release. Logging should be used instead. |
void |
setConfiguration(Document configuration)
Set the Configuration to be used when formatting documents using this instance of XincEngine. |
static void |
setLicenseText(String licenseText)
Used to programmatically set the license to be used by the formatter. |
static void |
setLogger(org.apache.commons.logging.Log log)
Set the Log instance currently in effect for Xinc. |
void |
setRenderer(String rendererType)
Set the Renderer used to generate output. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String RENDERER_PDF
public static final String RENDERER_XML
public static final String RENDERER_PRINT
public static final String RENDERER_DEFAULT
Constructor Detail |
public XincFormatter()
Method Detail |
public static void setLicenseText(String licenseText)
licenseText
- public void format(String docUrl, String styleUrl, OutputStream outputStream) throws XincException
docUrl
- A URL which refers to the XML document to be formatted.styleUrl
- A URL which refers to an XSLT stylesheet. This value may be null
if the docUrlStr refers to a valid xsl-fo file. The XSLT stylesheet is used to
transform the XML document into valid xsl-fo before rendering it.outputStream
- An OutputStream
to which the resultant document will be written.
Should be set to null if output is being sent directly to a printer.
The caller is responsible for closing the stream.
XincException
public void format(String docUrl, String styleUrl, String outputFileName) throws XincException
docUrl
- A URL which refers to the XML document to be formatted.styleUrl
- A URL which refers to an XSLT stylesheet. This value may be null
if the docUrlStr refers to a valid xsl-fo file. The XSLT stylesheet is used to
transform the XML document into valid xsl-fo before rendering it.outputFileName
- The name of a file to which the result will be written. Should
be set to null if output is being sent directly to a printer.
XincException
public void format(InputSource src, OutputStream outputStream) throws XincException
src
- An InputSource which represents the XSL-FO document to be formatted.outputStream
- An OutputStream
to which the resultant document will be written.
Should be set to null if output is being sent directly to a printer.
The caller is responsible for closing the stream.
XincException
public void format(InputSource docSource, Source styleSource, OutputStream outputStream) throws XincException
docSource
- An InputSource which represents the XML document to be formatted.styleSource
- A Source which represents an XSLT stylesheet.
The XSLT stylesheet is used to transform the XML document
into valid xsl-fo before rendering it.outputStream
- An OutputStream
to which the resultant document will be written.
Should be set to null if output is being sent directly to a printer.
The caller is responsible for closing the stream.
XincException
public void setRenderer(String rendererType) throws IllegalArgumentException
rendererType
- Only XincFormatter.RENDERER_PDF
is supported.
IllegalArgumentException
public List getWarnings()
String
objects, each one of which contains the
text of a warning message. A warning message may contain line separator characters.
String
objects.public Document getConfiguration() throws XincException
XincException
public void setConfiguration(Document configuration)
configuration
- The configuration to set.public static void setLogger(org.apache.commons.logging.Log log)
log
- The new Log.public static org.apache.commons.logging.Log getLogger()
public String getRenderer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |