Class OpenOfficeConverter

    • Constructor Detail

      • OpenOfficeConverter

        public OpenOfficeConverter()
    • Method Detail

      • isDocumentSupported

        public abstract boolean isDocumentSupported​(File document)
        Is the specified document in the format on which the converter works?
        Parameters:
        document - the document to check its format is supported.
        Returns:
        true if the format of the document is supported by this converter, false otherwise.
      • convert

        public File convert​(File source,
                            DocumentFormat inFormat,
                            FilterOption... options)
        Description copied from interface: DocumentFormatConversion
        Converts the specified document in the specified format. The format should be supported by the converter. If an error occurs while converting the specified file, then a runtime exception DocumentFormatConversionException is thrown.
        Specified by:
        convert in interface DocumentFormatConversion
        Parameters:
        source - the document to convert.
        inFormat - the format into which the document has to be converted.
        options - additional options such as "PageRange"
        Returns:
        the file with the converted document.
      • convert

        public File convert​(File source,
                            File destination,
                            DocumentFormat outFormat,
                            FilterOption... options)
        Description copied from interface: DocumentFormatConversion
        Converts the specified document in the specified format. The format should be supported by the converter. If an error occurs while converting the specified file, then a runtime exception DocumentFormatConversionException is thrown.
        Specified by:
        convert in interface DocumentFormatConversion
        Parameters:
        source - the document to convert.
        destination - the converted document.
        outFormat - the format into which the document has to be converted.
        Returns:
        the destination file.