public class CastorXmlTransformer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
fopLogger |
static String |
HTML |
protected static org.apache.commons.logging.Log |
log |
static String |
PDF |
static String |
XML |
static String |
XSL |
| Constructor and Description |
|---|
CastorXmlTransformer() |
CastorXmlTransformer(String xslField,
String xslFilePath) |
CastorXmlTransformer(String xslField,
String xsdField,
String xslHttpPath,
String xslFilePath) |
| Modifier and Type | Method and Description |
|---|---|
String |
createHtml(Object rapport) |
ByteArrayOutputStream |
createPdf(Object rapport) |
String |
createXml(Object rapport) |
String |
createXsl(Object rapport) |
protected String |
findXslFilePath() |
protected String |
findXslHttpPath() |
static Map |
getContentTypes() |
static void |
objectToPDF(Object marshallable,
Source xslFopSource,
OutputStream out,
boolean validateMarshal)
Transformeert een Object dat door Castor kan worden gemarshalled naar
een PDF met behulp van apache-fop.
|
protected static org.apache.commons.logging.Log log
protected static org.apache.log4j.Logger fopLogger
public static final String HTML
public static final String XSL
public static final String PDF
public static final String XML
public static Map getContentTypes()
public ByteArrayOutputStream createPdf(Object rapport) throws Exception
Exceptionpublic static void objectToPDF(Object marshallable, Source xslFopSource, OutputStream out, boolean validateMarshal) throws TransformerConfigurationException, IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshallable - Het door Castor te marshallen objectxslFopSource - Source van het XSL-FO documentout - Output voor de gegenereerde PDFvalidateMarshal - Of Castor het marshallable object moet valideren of
het voldoet aan het schema.TransformerConfigurationExceptionIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionCopyright © 2015. All rights reserved.