/** * This method is used to set the Deserialized Object and it also calls * the parent LDAPXMLHandler (if not null), returning the value using * addValue() * @param data Object data. * @see #addValue(String, Object) */ protected final void setObject(Object data) { if ((state != START) && (state != CHILDELEMENT)) throw new IllegalStateException("setObject"); resultantObject = data; if (getParent() != null) { getParent().addValue(getName(), data); } } }
protected void endElement() { try { byte[] temp; String name = getName(); String value = getValue(); if (this.isBase64) { temp = Base64.decode(value); } else { temp = value.getBytes("UTF-8"); } //getParent().addValue("value", temp); getParent().addValue(name, temp); } catch (UnsupportedEncodingException e) { } } protected void handleAttributes(Attributes attributes) throws SAXException {