comparison src/java/de/intevation/mxd/reader/MXDReader.java @ 181:0bde090506f9

Added comments.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 11 Jul 2011 14:28:38 +0200
parents 2bf35f0babd0
children df4e0946ef02
comparison
equal deleted inserted replaced
180:f4eb506499f5 181:0bde090506f9
40 private ArcGISInitializer initializer = null; 40 private ArcGISInitializer initializer = null;
41 private MapToXMLUtils util; 41 private MapToXMLUtils util;
42 private IMap map; 42 private IMap map;
43 private int invalidLayerCount; 43 private int invalidLayerCount;
44 44
45 /**
46 * Default constructor.
47 */
45 public MXDReader() 48 public MXDReader()
46 throws IOException { 49 throws IOException {
47 logger.debug("constructor()"); 50 logger.debug("constructor()");
48 initializer = new ArcGISInitializer(); 51 initializer = new ArcGISInitializer();
49 util = new MapToXMLUtils(); 52 util = new MapToXMLUtils();
81 } 84 }
82 } 85 }
83 86
84 /** 87 /**
85 * Set the path and filename to the MXD-File. 88 * Set the path and filename to the MXD-File.
89 *
90 * @param name The MXD filename.
86 */ 91 */
87 public void setFilename(String name) { 92 public void setFilename(String name) {
88 logger.debug("setFilename()"); 93 logger.debug("setFilename()");
89 filename = name; 94 filename = name;
90 } 95 }
91 96
92 97 /**
98 * Get the map document from MXD.
99 */
93 private void openMapDocument() 100 private void openMapDocument()
94 throws IOException { 101 throws IOException {
95 MapDocument m = new MapDocument(); 102 MapDocument m = new MapDocument();
96 if(!m.isMapDocument(filename)) { 103 if(!m.isMapDocument(filename)) {
97 throw new IOException(filename + " is not a map!"); 104 throw new IOException(filename + " is not a map!");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)