public class DocumentWriterBase extends DocumentWriter
DocumentWriter
which saves
the DiffSupport.SERIAL_NUMBER_PROPERTY
element property
as the xxe-sn
processing-instruction.cdataSections, documentType, duplicateIDFilter, favorInteroperability, filterDuplicateIDs, out, predeclarePrefixPrefs, preserveInclusions, qNameHelper, textHelper
Constructor and Description |
---|
DocumentWriterBase(Writer out) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginWrite(Document document) |
protected void |
beginWrite(Element element) |
protected boolean |
isEmptyElement(Element element) |
protected void |
writeElementProperties(Element element)
Write certain element properties in the form of processing-instructions.
|
addXMLBase, checkComment, checkProcessingInstruction, endWrite, endWrite, flush, getCdataSectionElements, getCharEntities, getCharsSavedAsEntityRefs, getDocumentType, getEncoding, getFavorInteroperability, getFilterDuplicateIDs, getPredeclarePrefixPreferences, getPrefixPreferences, getPreserveInclusions, getWriter, hasEmptyContentType, popElement, predeclarePrefixPrefs, pushElement, setCdataSectionElements, setCharEntities, setCharsSavedAsEntityRefs, setDocumentType, setEncoding, setFavorInteroperability, setFilterDuplicateIDs, setPredeclarePrefixPreferences, setPrefixPreferences, setPreserveInclusions, shorten, write, write, writeAttribute, writeAttributes, writeCDATA, writeComment, writeDocumentTypeDeclaration, writeElement, writeEmptyEndTag, writeEndTag, writeEntityRef, writeFrame, writeInclusion, writeProcessingInstruction, writeStartTag, writeText
public DocumentWriterBase(Writer out)
protected void beginWrite(Document document) throws IOException
beginWrite
in class DocumentWriter
IOException
protected void beginWrite(Element element) throws IOException
beginWrite
in class DocumentWriter
IOException
protected boolean isEmptyElement(Element element)
isEmptyElement
in class DocumentWriter
protected void writeElementProperties(Element element) throws IOException
DocumentWriter
Base implementation does nothing at all as properties are not supposed to be serialized.
writeElementProperties
in class DocumentWriter
IOException