Class MSExcelWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<N>
-
- com.levigo.jadice.server.msoffice.AbstractMSWorker<MSExcelNode>
-
- com.levigo.jadice.server.msoffice.MSExcelWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<MSExcelNode>
,Runnable
public class MSExcelWorker extends AbstractMSWorker<MSExcelNode>
-
-
Field Summary
Fields Modifier and Type Field Description static String
REPLACEMENT_PAGE_DESCRIPTION
Text within the replacement page that is generated instead of the empty excel file.static String
REPLACEMENT_PAGE_DESCRIPTION_WITH_FILENAME
Text and filename within the replacement page that is generated instead of the empty excel file.-
Fields inherited from class com.levigo.jadice.server.msoffice.AbstractMSWorker
logger
-
-
Constructor Summary
Constructors Constructor Description MSExcelWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StreamDescriptor
createDescriptor(File result, StreamDescriptor parent)
protected Map<String,String>
getConversionProperties()
protected Class<? extends CommandReceiver>
getConverterClass()
protected String
getFilename()
protected String
getTargetMimeType()
protected void
work(Stream stream)
Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.msoffice.AbstractMSWorker
doAbort, doAbortNow, getConverterPool, initialize, setConverterPool, shallForwardStream
-
Methods inherited from class com.levigo.jadice.server.core.StreamWorker
accept, reject, work
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorker
abort, abortNow, addInputBundle, addOutputBundle, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Field Detail
-
REPLACEMENT_PAGE_DESCRIPTION
public static final String REPLACEMENT_PAGE_DESCRIPTION
Text within the replacement page that is generated instead of the empty excel file.- See Also:
- Constant Field Values
-
REPLACEMENT_PAGE_DESCRIPTION_WITH_FILENAME
public static final String REPLACEMENT_PAGE_DESCRIPTION_WITH_FILENAME
Text and filename within the replacement page that is generated instead of the empty excel file.- See Also:
- Constant Field Values
-
-
Method Detail
-
work
protected void work(Stream stream) throws Throwable
Description copied from class:StreamWorker
Implement this method in order to work on a single stream.- Overrides:
work
in classAbstractMSWorker<MSExcelNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
createDescriptor
protected StreamDescriptor createDescriptor(File result, StreamDescriptor parent)
- Specified by:
createDescriptor
in classAbstractMSWorker<MSExcelNode>
-
getConversionProperties
protected Map<String,String> getConversionProperties()
- Specified by:
getConversionProperties
in classAbstractMSWorker<MSExcelNode>
-
getConverterClass
protected Class<? extends CommandReceiver> getConverterClass()
- Specified by:
getConverterClass
in classAbstractMSWorker<MSExcelNode>
-
getTargetMimeType
protected String getTargetMimeType()
- Specified by:
getTargetMimeType
in classAbstractMSWorker<MSExcelNode>
-
getFilename
protected String getFilename()
- Specified by:
getFilename
in classAbstractMSWorker<MSExcelNode>
-
-