|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xml_project.morganaxproc.connectors.FOConnector
public abstract class FOConnector
This class defines an interface for the use of XSL FO processors with MorganaXProc. It
allows you to use any FO processor you like in 'p:xsl-formatter' by just wrapping a
FOConnector around it.
| Nested Class Summary | |
|---|---|
static class |
FOConnector.FOConnectorException
|
| Constructor Summary | |
|---|---|
FOConnector()
|
|
| Method Summary | |
|---|---|
abstract void |
format(nu.xom.Document doc,
java.util.Properties parameters,
java.lang.String stepURI,
java.io.OutputStream stream,
java.lang.String contentType,
java.io.PrintStream messageChannel)
Does the actual transformation |
protected static java.lang.Boolean |
getBooleanProperty(java.util.Properties props,
java.lang.String propName)
Static method to return a boolean property with a given name from the property map |
protected static java.util.Date |
getDateProperty(java.util.Properties props,
java.lang.String propName)
Static method to return a date property with a given name from the property map |
protected static java.lang.Float |
getFloatProperty(java.util.Properties props,
java.lang.String propName)
Static method to return a float property with a given name from the property map |
abstract java.lang.String |
getInfoString()
Called in initialization to issue copyright information etc. |
protected static java.lang.Integer |
getIntProperty(java.util.Properties props,
java.lang.String propName)
Static method to return an integer property with a given name from the property map |
protected static java.lang.String |
getStringProperty(java.util.Properties props,
java.lang.String propName)
Static method to return a property with a given name from the property map |
static FOConnector |
newInstance(java.lang.String className,
java.io.PrintWriter infoWriter,
java.io.PrintStream messageStream)
Creates a new instance of a FOConnector using the class the given class name. |
static FOConnector |
newInstance(XProcConfiguration config,
java.io.PrintWriter infoWriter,
java.io.PrintStream messageStream)
Creates a new instance of a FOConnector using the class defined in XProcConfiguration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FOConnector()
| Method Detail |
|---|
public abstract java.lang.String getInfoString()
public abstract void format(nu.xom.Document doc,
java.util.Properties parameters,
java.lang.String stepURI,
java.io.OutputStream stream,
java.lang.String contentType,
java.io.PrintStream messageChannel)
throws FOConnector.FOConnectorException
doc - the documentparameters - the parametersstepURI - the steps uristream - the stream to which the output should be writtencontentType - the content-type of the outputmessageChannel - might be used to output messages. May be null.
FOConnector.FOConnectorException - when an error occurs
public static final FOConnector newInstance(XProcConfiguration config,
java.io.PrintWriter infoWriter,
java.io.PrintStream messageStream)
throws FOConnector.FOConnectorException
XProcConfiguration.
This method is called before the execution of the pipeline by MorganaXProc.
config - the XProcConfiguration to use.infoWriter - the PrintWriter for messages or null.messageStream - the PrintStream for copyright messages.
FOConnector.FOConnectorException - if any exception occurs in creating the new FOConnector.
public static final FOConnector newInstance(java.lang.String className,
java.io.PrintWriter infoWriter,
java.io.PrintStream messageStream)
throws FOConnector.FOConnectorException
MorganaXProc.
className - A class name for the FOConnector to create.infoWriter - the PrintWriter for messages or null.messageStream - the PrintStream for copyright messages.
FOConnector.FOConnectorException - if any exception occurs in creating the new FOConnector.
protected static java.lang.String getStringProperty(java.util.Properties props,
java.lang.String propName)
props - the property mappropName - the name of the property to return
protected static java.lang.Boolean getBooleanProperty(java.util.Properties props,
java.lang.String propName)
props - the property mappropName - the name of the property to return
protected static java.lang.Float getFloatProperty(java.util.Properties props,
java.lang.String propName)
props - the property mappropName - the name of the property to return
protected static java.util.Date getDateProperty(java.util.Properties props,
java.lang.String propName)
props - the property mappropName - the name of the property to return
protected static java.lang.Integer getIntProperty(java.util.Properties props,
java.lang.String propName)
props - the property mappropName - the name of the property to return
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||