Class DocumentConverterImpl
java.lang.Object
io.jmix.reports.yarg.formatters.impl.xls.DocumentConverterImpl
- All Implemented Interfaces:
DocumentConverter
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.reports.yarg.formatters.impl.xls.DocumentConverter
DocumentConverter.FileType
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
protected OfficeIntegrationAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
convert
(String convertPattern, byte[] documentBytes, OutputStream outputStream) protected void
convertOnes
(String convertPattern, byte[] documentBytes, OutputStream outputStream) void
convertToHtml
(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) void
convertToPdf
(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) protected void
convertWithRetries
(String convertPattern, byte[] documentBytes, OutputStream outputStream, Exception lastException, int retriesCount) protected void
saveAndClose
(OfficeResourceProvider ooResourceProvider, com.sun.star.lang.XComponent xComponent, OutputStream outputStream, String filterName)
-
Field Details
-
log
protected static final org.slf4j.Logger log -
officeIntegration
-
-
Constructor Details
-
DocumentConverterImpl
-
-
Method Details
-
convertToPdf
public void convertToPdf(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) - Specified by:
convertToPdf
in interfaceDocumentConverter
-
convertToHtml
public void convertToHtml(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) - Specified by:
convertToHtml
in interfaceDocumentConverter
-
convert
-
convertWithRetries
protected void convertWithRetries(String convertPattern, byte[] documentBytes, OutputStream outputStream, Exception lastException, int retriesCount) -
convertOnes
protected void convertOnes(String convertPattern, byte[] documentBytes, OutputStream outputStream) throws NoFreePortsException - Throws:
NoFreePortsException
-
saveAndClose
protected void saveAndClose(OfficeResourceProvider ooResourceProvider, com.sun.star.lang.XComponent xComponent, OutputStream outputStream, String filterName) throws com.sun.star.io.IOException - Throws:
com.sun.star.io.IOException
-