@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; } }
public WowheadHandler(long reference) { loot = new Loot(); loot.setReference(reference); }