org.artofsolving.jodconverter
Class AbstractConversionTask

java.lang.Object
  extended by org.artofsolving.jodconverter.AbstractConversionTask
All Implemented Interfaces:
OfficeTask
Direct Known Subclasses:
StandardConversionTask

public abstract class AbstractConversionTask
extends Object
implements OfficeTask


Constructor Summary
AbstractConversionTask(File inputFile, File outputFile)
           
 
Method Summary
 void execute(OfficeContext context)
           
protected abstract  Map<String,?> getLoadProperties(File inputFile)
           
protected abstract  Map<String,?> getStoreProperties(File outputFile, com.sun.star.lang.XComponent document)
           
protected  void modifyDocument(com.sun.star.lang.XComponent document)
          Override to modify the document after it has been loaded and before it gets saved in the new format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConversionTask

public AbstractConversionTask(File inputFile,
                              File outputFile)
Method Detail

getLoadProperties

protected abstract Map<String,?> getLoadProperties(File inputFile)

getStoreProperties

protected abstract Map<String,?> getStoreProperties(File outputFile,
                                                    com.sun.star.lang.XComponent document)

execute

public void execute(OfficeContext context)
             throws OfficeException
Specified by:
execute in interface OfficeTask
Throws:
OfficeException

modifyDocument

protected void modifyDocument(com.sun.star.lang.XComponent document)
                       throws OfficeException
Override to modify the document after it has been loaded and before it gets saved in the new format.

Does nothing by default.

Parameters:
document -
Throws:
OfficeException


Copyright © 2003-2011. All Rights Reserved.