Example #1
0
 public static void main(String[] args) throws Exception {
   if (args.length != 1) {
     System.err.println("Usage: java ... " + TestValidation.class + " [file]");
     System.exit(1);
   }
   try {
     int total = new TestValidation().test(new File(args[0]));
     System.out.println("Total: " + total);
   } catch (XMLStreamException sex) {
     System.err.println("XML Error: " + sex);
   } catch (Throwable t) {
     System.err.println("Error: " + t);
     t.printStackTrace();
   }
 }
 static {
   System.setProperty("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory");
   System.setProperty("javax.xml.stream.XMLOutputFactory", "com.ctc.wstx.stax.WstxOutputFactory");
   System.setProperty(
       "javax.xml.stream.XMLEventFactory", "com.ctc.wstx.stax.evt.WstxEventFactory");
 }
 protected void updateModifiedTime() {
   this.lastModifiedTime = System.currentTimeMillis();
 }