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
FieldsModifier and TypeFieldDescriptionprotected static final org.slf4j.Loggerprotected OfficeIntegrationAPI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvert(String convertPattern, byte[] documentBytes, OutputStream outputStream) protected voidconvertOnes(String convertPattern, byte[] documentBytes, OutputStream outputStream) voidconvertToHtml(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) voidconvertToPdf(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) protected voidconvertWithRetries(String convertPattern, byte[] documentBytes, OutputStream outputStream, Exception lastException, int retriesCount) protected voidsaveAndClose(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:
convertToPdfin interfaceDocumentConverter
-
convertToHtml
public void convertToHtml(DocumentConverter.FileType fileType, byte[] documentBytes, OutputStream outputStream) - Specified by:
convertToHtmlin 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
-