XDC - v. 0.6.1

net.sf.xdc.util
Class XdcSerializer

java.lang.Object
  extended byorg.apache.xml.serialize.BaseMarkupSerializer
      extended byorg.apache.xml.serialize.HTMLSerializer
          extended bynet.sf.xdc.util.XdcSerializer
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.DocumentHandler, org.apache.xml.serialize.DOMSerializer, org.xml.sax.DTDHandler, org.xml.sax.ext.LexicalHandler, org.apache.xml.serialize.Serializer

public class XdcSerializer
extends org.apache.xml.serialize.HTMLSerializer

This class is used to serialize an HTML document to a stream. In addition to the standard HTML serializer provided by the JDK, it supports "disable-output-escaping" sections.

Since:
0.5
Version:
0.5
Author:
Jens Voß

Field Summary
 
Fields inherited from class org.apache.xml.serialize.HTMLSerializer
XHTMLNamespace
 
Fields inherited from class org.apache.xml.serialize.BaseMarkupSerializer
_docTypePublicId, _docTypeSystemId, _encodingInfo, _format, _indenting, _prefixes, _printer, _started, fCurrentNode, fDOMError, fDOMErrorHandler, fDOMFilter, features, fStrBuffer
 
Constructor Summary
XdcSerializer(java.io.Writer writer, org.apache.xml.serialize.OutputFormat outputFormat)
          Public constructor.
 
Method Summary
 void processingInstructionIO(java.lang.String string, java.lang.String string1)
          This method adds support for the "disable-output-escaping" processing instruction.
 
Methods inherited from class org.apache.xml.serialize.HTMLSerializer
characters, characters, endElement, endElement, endElementIO, escapeURI, getEntityRef, serializeElement, setOutputFormat, setXHTMLNamespace, startDocument, startElement, startElement
 
Methods inherited from class org.apache.xml.serialize.BaseMarkupSerializer
asContentHandler, asDocumentHandler, asDOMSerializer, attributeDecl, checkUnboundNamespacePrefixedNode, comment, comment, content, elementDecl, endCDATA, endDocument, endDTD, endEntity, endNonEscaping, endPrefixMapping, endPreserving, enterElementState, externalEntityDecl, fatalError, getElementState, getPrefix, ignorableWhitespace, internalEntityDecl, isDocumentState, leaveElementState, modifyDOMError, notationDecl, prepare, printCDATAText, printDoctypeURL, printEscaped, printEscaped, printText, printText, processingInstruction, reset, serialize, serialize, serialize, serializeNode, serializePreRoot, setDocumentLocator, setOutputByteStream, setOutputCharStream, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startNonEscaping, startPrefixMapping, startPreserving, surrogates, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdcSerializer

public XdcSerializer(java.io.Writer writer,
                     org.apache.xml.serialize.OutputFormat outputFormat)
Public constructor.

Parameters:
writer - The Writer to which the tree is serialized
outputFormat - An OutputForma object controlling various output options
Method Detail

processingInstructionIO

public void processingInstructionIO(java.lang.String string,
                                    java.lang.String string1)
                             throws java.io.IOException
This method adds support for the "disable-output-escaping" processing instruction.

Parameters:
string - The name of the processing instruction
string1 - The code used for this processing instruction
Throws:
java.io.IOException

XDC - v. 0.6.1