|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.skaringa.javaxml.handler.sax.DocumentInputHandler
public final class DocumentInputHandler
Class that handles events from a SAXInputHandler. It constitutes a new object according to the SAX events.
| Constructor Summary | |
|---|---|
DocumentInputHandler()
|
|
| Method Summary | |
|---|---|
void |
appendText(char[] ch,
int start,
int length)
Called if a text node is found in the XML input. |
void |
endDocument()
Called at the end of a document. |
void |
endElement(java.lang.String name)
Called at the end of an element. |
java.lang.ClassLoader |
getClassLoader()
Get the class loader used to load classes during deserialization. |
java.lang.Object |
getObject()
Get the deserialized object. |
java.util.Map |
getProperties()
Get the properties of the InputHandler |
void |
setClassLoader(java.lang.ClassLoader loader)
Set the class loader used to load classes during deserialization. |
void |
setProperties(java.util.Map propertyMap)
Set the properties of the InputHandler |
void |
startDocument()
Called at the start of a document. |
void |
startElement(java.lang.String name,
org.xml.sax.Attributes attrs)
Called at the start of an element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentInputHandler()
| Method Detail |
|---|
public java.lang.Object getObject()
public void startDocument()
public void endDocument()
public void startElement(java.lang.String name,
org.xml.sax.Attributes attrs)
throws DeserializerException
name - The element name.attrs - The attributes of the element.
DeserializerException - If the deserialization failes.
public void appendText(char[] ch,
int start,
int length)
ch - Character array containing the text.start - Start position of the text in the array.length - Length of the text in the array.
public void endElement(java.lang.String name)
throws DeserializerException
name - The element name.
DeserializerException - If the deserialization failes.public void setProperties(java.util.Map propertyMap)
propertyMap - The properties.public java.util.Map getProperties()
public void setClassLoader(java.lang.ClassLoader loader)
loader - The class loader.public java.lang.ClassLoader getClassLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||