comparison src/howtouse/TestSaxParser.java @ 13:84dd614f1414 draft

add LinkConvertGraph.java
author one
date Thu, 23 Aug 2012 07:22:37 +0900
parents bf7863a55cd6
children fa38ded4c054
comparison
equal deleted inserted replaced
12:bf7863a55cd6 13:84dd614f1414
63 public HashMap<String,HashSet<String>> getHash() { 63 public HashMap<String,HashSet<String>> getHash() {
64 return hash; 64 return hash;
65 } 65 }
66 66
67 public void startDocument() { 67 public void startDocument() {
68 System.out.println("read start"); 68 // System.out.println("read start");
69 } 69 }
70 70
71 public void startElement(String uri, String localName, String qName, 71 public void startElement(String uri, String localName, String qName,
72 Attributes attributes) throws SAXException { 72 Attributes attributes) throws SAXException {
73 currentTag = qName; 73 currentTag = qName;
119 else 119 else
120 currentObj = (MyObject) stack.peek(); 120 currentObj = (MyObject) stack.peek();
121 } 121 }
122 122
123 public void endDocument() { 123 public void endDocument() {
124 System.out.println("end reading file."); 124 // System.out.println("end reading file.");
125 } 125 }
126 126
127 } 127 }