Quellcode durchsuchen

Bugfix on MyFileSourceGraphML

Jan Enders vor 8 Jahren
Ursprung
Commit
4ed82cda51

+ 5 - 0
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/io/MyFileSourceGraphML.java

@@ -240,6 +240,10 @@ public class MyFileSourceGraphML extends MySourceBase implements FileSource, XML
 	 * Build a new source to parse an xml stream in GraphML format.
 	 */
 	public MyFileSourceGraphML() {
+		init();
+	}
+	
+	private void init(){
 		events = new Stack<XMLEvent>();
 		keys = new HashMap<String, Key>();
 		datas = new LinkedList<Data>();
@@ -672,6 +676,7 @@ public class MyFileSourceGraphML extends MySourceBase implements FileSource, XML
 				break;
 			case END:
 				currentReaderState = ReaderState.START;
+				init();
 				return;
 			}
 		}