Esempio n. 1
0
 @Override
 public void characters(char[] data, int start, int length) throws SAXException {
   if (isName) {
     StringBuffer buffer = new StringBuffer();
     for (int i = 0; i < length; i++) {
       buffer.append(data[start + i]);
     }
     loot.setName(buffer.toString().trim());
     isName = false;
   }
 }
Esempio n. 2
0
 public WowheadHandler(long reference) {
   loot = new Loot();
   loot.setReference(reference);
 }