Schnittstelle IVisualizer
- Alle bekannten Implementierungsklassen:
VisualizerImpl
public interface IVisualizer
Interface defining the methods for XRechnung visualization.
- Autor:
- Dr. Jan C. Thiele
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungrunVisualization
(String invoicePath, String xslPathubl, String xslPathublcn, String xslPathcii, String htmlXslPath) Method to run visualization.void
Method to save HTML visualization to file.void
transformAndSaveToPDF
(String xslPath, String outFile) Method to create PDF transformation and save result to file.
-
Methodendetails
-
runVisualization
StringWriter runVisualization(String invoicePath, String xslPathubl, String xslPathublcn, String xslPathcii, String htmlXslPath) throws XMLStreamException, IOException, Exception Method to run visualization.- Parameter:
invoicePath
- path to invoice filexslPathubl
- path to xsl for ublxslPathublcn
- path to xsl for ubl credit notexslPathcii
- path to xsl for CIIhtmlXslPath
- path to xsl for HTML- Gibt zurück:
- report string writer
- Löst aus:
XMLStreamException
- XML stream errorIOException
- read errorException
- unspecific error
-
transformAndSaveToPDF
void transformAndSaveToPDF(String xslPath, String outFile) throws IOException, TransformerException, org.apache.fop.apps.FOPException Method to create PDF transformation and save result to file.- Parameter:
xslPath
- path to transformation xsl script for pdfoutFile
- output pdf file- Löst aus:
IOException
- write exceptionTransformerException
- transformer errororg.apache.fop.apps.FOPException
- fop error
-
saveAs
Method to save HTML visualization to file.- Parameter:
filePath
- path to save the visualization into- Löst aus:
IOException
- write error
-