Class CommandReceiver
- java.lang.Object
-
- com.levigo.jadice.server.msoffice.CommandReceiver
-
- Direct Known Subclasses:
MSExcelConverter
,MSOutlookConverter
,MSPowerpointConverter
,MSProjectConverter
,MSVisioConverter
,MSWordConverter
public abstract class CommandReceiver extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CommandReceiver.ResultHandler
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommandReceiver()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
convert(File inFile, Format format, ExportFilter filter, Map<String,String> parameters, List<File> results)
protected void
finalize()
protected String
getApplicationName()
Determine the name of the triggered MS Office application.protected ExportConfiguration
getExportConfiguration()
CountDownLatch
getLatch()
String
getOfficeMajorVersion()
abstract String
getOfficeVersion()
abstract String
getProcessName()
protected static String
getStackTrace(Throwable e)
protected static boolean
isExportAllPages(Map<String,String> parameters)
protected boolean
isPropagateProcessID()
protected abstract boolean
needFormatInfo()
protected static String
pagesAsString(Map<String,String> parameters)
protected abstract void
ping()
protected void
propagateProcessID(Collection<Integer> pids)
protected void
run()
protected void
sendInfo(String message)
protected void
sendWarning(String message, Throwable error)
abstract void
setDebug(boolean enable)
abstract void
shutdown()
abstract void
start()
-
-
-
Constructor Detail
-
CommandReceiver
protected CommandReceiver() throws JAXBException, IOException
- Throws:
JAXBException
IOException
-
-
Method Detail
-
getOfficeVersion
public abstract String getOfficeVersion()
-
getOfficeMajorVersion
public String getOfficeMajorVersion()
-
start
public abstract void start() throws MSOfficeStartupException
- Throws:
MSOfficeStartupException
-
convert
public abstract void convert(File inFile, Format format, ExportFilter filter, Map<String,String> parameters, List<File> results) throws Exception
- Throws:
Exception
-
setDebug
public abstract void setDebug(boolean enable)
-
getProcessName
public abstract String getProcessName()
-
isPropagateProcessID
protected boolean isPropagateProcessID()
-
getApplicationName
protected String getApplicationName()
Determine the name of the triggered MS Office application. Per default extract it from the class name scheme MSXYZWorker where XYZ is the application name- Returns:
- name of MS Office application
-
propagateProcessID
protected void propagateProcessID(Collection<Integer> pids)
-
sendInfo
protected void sendInfo(String message)
-
getExportConfiguration
protected final ExportConfiguration getExportConfiguration() throws JAXBException, IOException
- Throws:
JAXBException
IOException
-
needFormatInfo
protected abstract boolean needFormatInfo()
-
getLatch
public CountDownLatch getLatch()
-
finalize
protected void finalize() throws Throwable
-
-