com.silverpeas.converter.openoffice
Class SilverpeasOpenOfficeDocumentConverter

java.lang.Object
  extended by com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter
      extended by com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter
          extended by com.silverpeas.converter.openoffice.SilverpeasOpenOfficeDocumentConverter
All Implemented Interfaces:
com.artofsolving.jodconverter.DocumentConverter

public class SilverpeasOpenOfficeDocumentConverter
extends com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter

This Object is kind of patch of JODConverter tools in the aim to add some conversion options.

Author:
Yohann Chastagnier

Field Summary
 
Fields inherited from class com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter
openOfficeConnection
 
Constructor Summary
SilverpeasOpenOfficeDocumentConverter(com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection connection)
          Default constructor
 
Method Summary
 void addFilterData(FilterOption option)
          Adds a filter
 void convert(InputStream source, DocumentFormat inFormat, OutputStream destination, DocumentFormat outFormat, FilterOption... options)
          Conversion from streams.
protected  void convertInternal(File inputFile, com.artofsolving.jodconverter.DocumentFormat inputFormat, File outputFile, com.artofsolving.jodconverter.DocumentFormat outputFormat)
          Same function as that of OpenOfficeDocumentConverter completed with FilterData processing.
 
Methods inherited from class com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter
convertInternal
 
Methods inherited from class com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter
convert, convert, convert, convert, getDefaultLoadProperties, getDocumentFormatRegistry, property, refreshDocument, setDefaultLoadProperty, toPropertyValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverpeasOpenOfficeDocumentConverter

public SilverpeasOpenOfficeDocumentConverter(com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection connection)
Default constructor

Parameters:
connection -
Method Detail

addFilterData

public void addFilterData(FilterOption option)
Adds a filter

Parameters:
option -

convertInternal

protected void convertInternal(File inputFile,
                               com.artofsolving.jodconverter.DocumentFormat inputFormat,
                               File outputFile,
                               com.artofsolving.jodconverter.DocumentFormat outputFormat)
Same function as that of OpenOfficeDocumentConverter completed with FilterData processing.

Overrides:
convertInternal in class com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter

convert

public void convert(InputStream source,
                    DocumentFormat inFormat,
                    OutputStream destination,
                    DocumentFormat outFormat,
                    FilterOption... options)
Conversion from streams.

Parameters:
source -
inFormat -
destination -
outFormat -
options -


Copyright © 2016 Silverpeas. All Rights Reserved.