comparison src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java @ 115:fb93f20478cc

Improved exception handling for symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 15 Jun 2011 16:48:42 +0200
parents 59e06c405a9a
children 0bde090506f9
comparison
equal deleted inserted replaced
114:93699e8f2d1f 115:fb93f20478cc
52 /** 52 /**
53 * Reads the symbol attributes. 53 * Reads the symbol attributes.
54 * 54 *
55 * @return The XML node. 55 * @return The XML node.
56 */ 56 */
57 public Element read() 57 public Element read() {
58 throws Exception {
59 logger.debug("read()"); 58 logger.debug("read()");
60 for(int i = 0; i < symbol.getLayerCount(); i++) { 59 try {
61 ISymbol sym = (ISymbol)symbol.getLayer(i); 60 for(int i = 0; i < symbol.getLayerCount(); i++) {
62 ISymbolReader sreader = new LineSymbolReader(sym); 61 ISymbol sym = (ISymbol)symbol.getLayer(i);
63 sreader.setParent(parent); 62 ISymbolReader sreader = new LineSymbolReader(sym);
64 sreader.setUtil(util); 63 sreader.setParent(parent);
65 sreader.read(); 64 sreader.setUtil(util);
65 sreader.read();
66 }
67 }
68 catch(Exception e) {
69 logger.error(
70 "Could not read the symbol " +
71 symbol.getClass().toString());
66 } 72 }
67 return parent; 73 return parent;
68 } 74 }
69 } 75 }
70 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 76 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)