idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
[idok-commit] idok commit r276 - trunk/java/ch/idok/dmsd/impl/extractor/microsoft
Chronological Thread
- From: "AFS account Roman Geus" <geus AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r276 - trunk/java/ch/idok/dmsd/impl/extractor/microsoft
- Date: Tue, 14 Oct 2008 14:19:51 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: geus
Date: Tue Oct 14 14:19:50 2008
New Revision: 276
Log:
Removed use Java6 method String.isEmpty() and fixed improper use of @Override
annotation in MSOfficeExtractorFactory.java to enforce Java5 compatibility
Modified:
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
Modified:
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
==============================================================================
---
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
(original)
+++
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
Tue Oct 14 14:19:50 2008
@@ -82,7 +82,7 @@
InterruptTimerTask(Process proc) {
process = proc;
}
- @Override
+
public void run() {
process.destroy();
logger.fine("Killed process "+process+" due to lack of
progress");
@@ -128,7 +128,6 @@
/**
* @brief Run method that reads the error stream.
*/
- @Override
public void run() {
Throwable ex = null;
try {
@@ -267,7 +266,7 @@
// Log the stderr output, if any, of the extraction process
errThread.join(interruptDelay);
String errStr = errOut.getErrorOutput();
- if (! errStr.isEmpty())
+ if (errStr.length() != 0)
logger.warning("Error stream of the MS Office Extractor
Process:\n"+errStr);
int rval = proc.waitFor();
if (rval != 0)
@@ -378,7 +377,6 @@
return new Exctractor(rawContent, metaData);
}
- @Override
public void destroy() {
}
}
- [idok-commit] idok commit r276 - trunk/java/ch/idok/dmsd/impl/extractor/microsoft, AFS account Roman Geus, 10/14/2008
Archive powered by MHonArc 2.6.19.