diff flys-backend/src/main/java/de/intevation/flys/importer/parsers/PRFParser.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 2f7a509f5acf
children
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/PRFParser.java	Fri Dec 28 11:59:01 2012 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/PRFParser.java	Fri Dec 28 13:33:36 2012 +0100
@@ -227,13 +227,6 @@
         return null;
     }
 
-    private static final String removeExtension(String name) {
-        int index = name.lastIndexOf('.');
-        return index == -1
-            ? name
-            : name.substring(0, index);
-    }
-
     public boolean parse(File file) {
 
         if (!(file.isFile() && file.canRead())) {
@@ -243,7 +236,7 @@
 
         log.info("parsing PRF file: '" + file + "'");
 
-        description = removeExtension(file.getName());
+        description = FileTools.removeExtension(file.getName());
 
         year = findYear(file.getName());
 

http://dive4elements.wald.intevation.org