Class OpenOfficeToHTMLConverter
- java.lang.Object
-
- org.silverpeas.core.contribution.converter.openoffice.OpenOfficeConverter
-
- org.silverpeas.core.contribution.converter.openoffice.OpenOfficeToHTMLConverter
-
- All Implemented Interfaces:
DocumentFormatConversion
,ToHTMLConverter
@Service @Named("toHTMLConverter") public class OpenOfficeToHTMLConverter extends OpenOfficeConverter implements ToHTMLConverter
Implementation of the ToHTMLConverter interface by using the OpenOffice API to perform its job.- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description OpenOfficeToHTMLConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentFormat[]
getSupportedFormats()
Gets the formats of documents supported by the converter.boolean
isDocumentSupported(File document)
Is the specified document in the format on which the converter works?-
Methods inherited from class org.silverpeas.core.contribution.converter.openoffice.OpenOfficeConverter
convert, convert, convert
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.contribution.converter.DocumentFormatConversion
convert, convert, convert
-
-
-
-
Method Detail
-
getSupportedFormats
public DocumentFormat[] getSupportedFormats()
Description copied from interface:DocumentFormatConversion
Gets the formats of documents supported by the converter.- Specified by:
getSupportedFormats
in interfaceDocumentFormatConversion
- Returns:
- an array with the different formats into which the object implementing this interface can convert a document.
-
isDocumentSupported
public boolean isDocumentSupported(File document)
Description copied from class:OpenOfficeConverter
Is the specified document in the format on which the converter works?- Specified by:
isDocumentSupported
in classOpenOfficeConverter
- 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.
-
-