|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--org.apache.xml.serialize.BaseMarkupSerializer
|
+--org.apache.xml.serialize.XMLSerializer
|
+--CustomXMLSerializer
|
+--EntitizedXMLSerializer
This class extends CustomXMLSerializer and allows for
entity references in the serialized XML.
| Field Summary | |
protected EntityHelper |
entityHelper
|
| Fields inherited from class CustomXMLSerializer |
spec |
| Fields inherited from class org.apache.xml.serialize.BaseMarkupSerializer |
_docTypePublicId, _docTypeSystemId, _format, _indenting, _prefixes, _printer, _started |
| Constructor Summary | |
EntitizedXMLSerializer(org.apache.xml.serialize.OutputFormat format,
EntityHelper entityHelper)
|
|
| Method Summary | |
protected void |
printEscaped(java.lang.String text)
This method is used for reinserting entity references into attribute values. |
protected void |
serializeNode(org.w3c.dom.Node node)
Overrides serializeNode()/ in
BaseMarkupSerializer. |
| Methods inherited from class CustomXMLSerializer |
serialize, serializeElement |
| Methods inherited from class org.apache.xml.serialize.XMLSerializer |
endElement, endElement, endElementIO, getEntityRef, setOutputFormat, startDocument, startElement, startElement |
| Methods inherited from class org.apache.xml.serialize.BaseMarkupSerializer |
asContentHandler, asDocumentHandler, asDOMSerializer, attributeDecl, characters, characters, comment, comment, content, elementDecl, endCDATA, endDocument, endDTD, endEntity, endNonEscaping, endPrefixMapping, endPreserving, enterElementState, externalEntityDecl, getElementState, getPrefix, ignorableWhitespace, internalEntityDecl, isDocumentState, leaveElementState, notationDecl, prepare, printDoctypeURL, printEscaped, printText, printText, processingInstruction, processingInstructionIO, reset, serialize, serialize, serializePreRoot, setDocumentLocator, setOutputByteStream, setOutputCharStream, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startNonEscaping, startPrefixMapping, startPreserving, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected EntityHelper entityHelper
| Constructor Detail |
public EntitizedXMLSerializer(org.apache.xml.serialize.OutputFormat format,
EntityHelper entityHelper)
| Method Detail |
protected void printEscaped(java.lang.String text)
throws java.io.IOException
printEscaped in class org.apache.xml.serialize.BaseMarkupSerializertext - source string
protected void serializeNode(org.w3c.dom.Node node)
throws java.io.IOException
serializeNode()/ in
BaseMarkupSerializer.
Unfortunately, I've had to copy this whole switch; what's changed
is the treatment of entity reference nodes.serializeNode in class org.apache.xml.serialize.BaseMarkupSerializernode - the node to serialize
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||