diff flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java @ 4729:0df1cac6c4b5

Removed removeExtension implementations, which have been moved to FileTools, update callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 28 Dec 2012 13:33:36 +0100
parents c6d70560285f
children 94b39073f0f7
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java	Fri Dec 28 11:59:01 2012 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java	Fri Dec 28 13:33:36 2012 +0100
@@ -179,7 +179,7 @@
     /** Get the description of the cross section parsed. */
     @Override
     public String getDescription() {
-        return removeExtension(getFileName());
+        return FileTools.removeExtension(getFileName());
     }
 
 
@@ -200,14 +200,6 @@
     }
 
 
-    // TODO yet unused, use for description.
-    private static final String removeExtension(String name) {
-        int index = name.lastIndexOf('.');
-        return index == -1
-            ? name
-            : name.substring(0, index);
-    }
-
     public void parseDA66s(File root, final Callback callback) {
 
         // TODO use the removeExtension/guess description and date.

http://dive4elements.wald.intevation.org