com.silverpeas.converter.openoffice
Class OpenOfficeHTMLConverter

java.lang.Object
  extended by com.silverpeas.converter.openoffice.OpenOfficeConverter
      extended by com.silverpeas.converter.openoffice.OpenOfficeHTMLConverter
All Implemented Interfaces:
DocumentFormatConversion, HTMLConverter

@Named(value="htmlConverter")
public class OpenOfficeHTMLConverter
extends OpenOfficeConverter
implements HTMLConverter

Implementation of the HTMLConverter interface by using the OpenOffice API to perform its job.


Constructor Summary
OpenOfficeHTMLConverter()
           
 
Method Summary
 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 com.silverpeas.converter.openoffice.OpenOfficeConverter
closeConnection, convert, convert, convert, convert, convert, getOpenOfficeDocumentConverterFrom, openConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.silverpeas.converter.DocumentFormatConversion
convert, convert, convert
 

Constructor Detail

OpenOfficeHTMLConverter

public OpenOfficeHTMLConverter()
Method Detail

getSupportedFormats

public DocumentFormat[] getSupportedFormats()
Description copied from interface: DocumentFormatConversion
Gets the formats of documents supported by the converter.

Specified by:
getSupportedFormats in interface DocumentFormatConversion
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 class OpenOfficeConverter
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.


Copyright © 2016 Silverpeas. All Rights Reserved.