diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 217:3dcd2b0b456e

Added configurable TimeGap Support to the TimeSeries-Chart-Generation. issu45 gnv-artifacts/trunk@275 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Thu, 29 Oct 2009 15:58:47 +0000
parents a33d59f5791a
children ee2d4134d0b3
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Wed Oct 28 16:26:03 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Thu Oct 29 15:58:47 2009 +0000
@@ -172,29 +172,11 @@
         String link = configurationNode.getAttribute("xlink:href");
         if (link != null ){
             String absolutFileName = Config.replaceConfigDir(link);
-            configurationNode = (Element)this.readConfiguration(absolutFileName);
+            configurationNode = (Element)new ArtifactXMLUtilities().readConfiguration(absolutFileName);
         }
         
         return configurationNode;
     }
-    
-    
-    private Node readConfiguration(String fileName){
-        try {
-            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-            factory.setValidating(false); 
-            return factory.newDocumentBuilder().parse(fileName).getChildNodes().item(0);
-        } catch (SAXException e) {
-            log.error(e,e);
-            return null;
-        } catch (IOException e) {
-            log.error(e,e);
-            return null;
-        } catch (ParserConfigurationException e) {
-            log.error(e,e);
-            return null;
-        }
-    }
 
     /**
      * @see de.intevation.artifactdatabase.DefaultArtifact#feed(org.w3c.dom.Document,

http://dive4elements.wald.intevation.org