(String[] args)
| 269 | } |
| 270 | |
| 271 | public static void main(String[] args) { |
| 272 | DocBuilder doc = null; |
| 273 | try { |
| 274 | doc = new DocBuilder(); |
| 275 | |
| 276 | System.out.println("[System] Parse"); |
| 277 | System.out.println("[Parser] Parsing DevilDoc.xml"); |
| 278 | try { |
| 279 | SAXParserFactory factory = SAXParserFactory.newInstance(); |
| 280 | factory.setValidating(false); |
| 281 | factory.newSAXParser().parse(new File("DevilDoc.xml"), doc); |
| 282 | } catch(Exception ex) { |
| 283 | System.out.println("[Error] Cannot Parse DevilDoc.xml"); |
| 284 | System.out.println(ex); |
| 285 | } |
| 286 | |
| 287 | System.out.println(); |
| 288 | System.out.println("[System] Create Documentation"); |
| 289 | |
| 290 | doc.work(); |
| 291 | |
| 292 | System.out.println(); |
| 293 | System.out.println("[System] Create Completed"); |
| 294 | System.out.println("[System] Goodbye"); |
| 295 | } catch(java.lang.StackOverflowError stack) { |
| 296 | doc.printXMLTrace(); |
| 297 | System.out.println("flag:" + doc.flag); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | public final void printXMLTrace() { |
| 302 | Object obj; |
nothing calls this directly
no test coverage detected