Exemplo 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;
   }
 }
Exemplo n.º 2
0
 public WowheadHandler(long reference) {
   loot = new Loot();
   loot.setReference(reference);
 }