@Override public void endElement(String uri, String lname, String name) throws SAXException { if ((elementStack.peek().hashCode() == FILE_CODE) && !topRE.isFolder()) { String string = pcdata.toString().trim(); topRE.setContent(string.length() > 0 ? string.getBytes() : null, this.uri, weight); pcdata.setLength(0); } int controlCode = name.hashCode(); elementStack.pop(); if ((controlCode == FOLDER_CODE) || (controlCode == FILE_CODE)) { resElemStack.pop(); topRE = resElemStack.peek(); return; } }
public void endElement(String name) throws SAXException { if (elementStack.peek().hashCode() == FILE_CODE && !topRE.isFolder ()) { String string = pcdata.toString().trim(); if (string.length() > 0) { topRE.setContent (string.getBytes()); } pcdata.setLength(0); } int controlCode = name.hashCode(); elementStack.pop(); if (controlCode == FOLDER_CODE || controlCode == FILE_CODE) { resElemStack.pop(); topRE = (ResourceElem)resElemStack.peek(); return ; } }
public void endElement(String name) throws SAXException { if (elementStack.peek().hashCode() == FILE_CODE && !topRE.isFolder ()) { String string = pcdata.toString().trim(); if (string.length() > 0) { topRE.setContent (string.getBytes()); } pcdata.setLength(0); } int controlCode = name.hashCode(); elementStack.pop(); if (controlCode == FOLDER_CODE || controlCode == FILE_CODE) { resElemStack.pop(); topRE = (ResourceElem)resElemStack.peek(); return ; } }