com.openharbor.beck.receive
Interface XMLReceiver
- All Known Implementing Classes:
- DefaultXMLReceiver
- public interface XMLReceiver
Constructs a Java object from an XML document.
The caller supplies XML in fragments via a sequence of method calls,
in the style of a SAX event stream.
After the XML has been entirely processed, the resulting object is
available from the getResult method.
setXMLContext
public void setXMLContext(XMLContext context)
startElement
public void startElement(XMLThing element)
throws java.lang.Exception
- Throws:
java.lang.Exception
characters
public void characters(char[] ch,
int start,
int length)
throws java.lang.Exception
- Throws:
java.lang.Exception
endElement
public void endElement()
throws java.lang.Exception
- Throws:
java.lang.Exception
getResult
public java.lang.Object getResult()
- Returns:
- the Java object that was unmarshalled from the XML document.
clear
public void clear()
- Release all resources and subsequently behave as though newly constructed.