Package com.xmlmind.w2x.processor
Class ConvertStep
- java.lang.Object
-
- com.xmlmind.w2x.processor.ProcessStep
-
- com.xmlmind.w2x.processor.ConvertStep
-
public class ConvertStep extends ProcessStep
This processing step is used to convert input DOCX file to an in-memory XHTML 1.0 Transitional document styled using CSS styles.
-
-
Field Summary
Fields Modifier and Type Field Description static NameRESOURCE_DIRECTORY_PROPThis processing step adds this document property to the document being processed.-
Fields inherited from class com.xmlmind.w2x.processor.ProcessStep
stepName
-
-
Constructor Summary
Constructors Constructor Description ConvertStep(String stepName)Constructs a ConvertStep having specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Object[] state, Map<String,String> parameters, int[] stepCounter, ProgressMonitor monitor)Execute this processing step.-
Methods inherited from class com.xmlmind.w2x.processor.ProcessStep
debugParameters, equals, getAllParameters, getBooleanParameter, getFileParameter, getIntParameter, getParameter, getURLParameter, hashCode, illegalState, joinAllParameters, missingParameter, parameterName, progress, toString, urlOrFile
-
-
-
-
Field Detail
-
RESOURCE_DIRECTORY_PROP
public static final Name RESOURCE_DIRECTORY_PROP
This processing step adds this document property to the document being processed. The value of this property is aResourceDirectory.
-
-
Constructor Detail
-
ConvertStep
public ConvertStep(String stepName)
Constructs a ConvertStep having specified name.
-
-
Method Detail
-
process
public void process(Object[] state, Map<String,String> parameters, int[] stepCounter, ProgressMonitor monitor) throws Exception
Execute this processing step.state[0]contains:- Before this method is executed: input DOCX file.
- After this method is executed: converted XHTML document.
- Specified by:
processin classProcessStep- Parameters:
state- contains the current state of processing: aDocumentor aFile.This object is used as the input of this step and thus, is processed by this step.
After its execution, this method generally updates the
statearray with a newDocumentorFileto pass the result/output of this step to the next step.parameters- all the parameters passed to theProcessorowning and thus executing this process step.Parameters which are relevant to this processing step are prefixed with "
".ProcessStep.stepName.stepCounter- contains the rank of previously executed processing step. Must be incremented by this method.monitor- used to monitor the progress of the processing stepsInvoking convenience method
ProcessStep.progress(java.lang.String, int[], com.xmlmind.util.ProgressMonitor)suffices to make good use of bothmonitorandstepCounter.- Throws:
Exception- if for any reason, this method fails
-
-