|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.devsphere.xml.taglib.output.write.Serializer
This class provides support for serializing SAX events and DOM trees.
| Field Summary | |
protected javax.xml.transform.Transformer |
domToStream
|
protected Filter |
filter
|
protected java.util.Properties |
properties
|
protected javax.xml.transform.sax.TransformerHandler |
saxToStream
|
| Constructor Summary | |
Serializer()
Initializes the serializer |
|
| Method Summary | |
javax.xml.transform.sax.TransformerHandler |
getHandler()
Returns a SAX handler that can be used to serialize SAX events. |
java.io.Writer |
getOut()
Gets the current writer used for output. |
java.util.Properties |
getOutputProperties()
Gets the output properties of the serializer. |
protected static javax.xml.transform.sax.SAXTransformerFactory |
getTransformerFactory()
Returns a JAXP transformer factory. |
void |
setOut(java.io.Writer out)
Sets the current writer used for output. |
void |
setOutputProperties(java.util.Properties properties)
Sets the output properties of the serializer. |
void |
write(org.w3c.dom.Node dom)
Serializes a DOM tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Filter filter
protected java.util.Properties properties
protected javax.xml.transform.Transformer domToStream
protected javax.xml.transform.sax.TransformerHandler saxToStream
| Constructor Detail |
public Serializer()
| Method Detail |
public java.io.Writer getOut()
public void setOut(java.io.Writer out)
out - the current writer used for outputpublic java.util.Properties getOutputProperties()
public void setOutputProperties(java.util.Properties properties)
properties - the output properties
public void write(org.w3c.dom.Node dom)
throws javax.servlet.jsp.JspException
dom - the root of the DOM tree
javax.servlet.jsp.JspException - to signal any error that might occur
public javax.xml.transform.sax.TransformerHandler getHandler()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - to signal any error that might occurprotected static javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||