public final class DocumentIndenter extends DocumentIndenter
DocumentIndenter
which saves
the DiffSupport.SERIAL_NUMBER_PROPERTY
element property
as the xxe-sn
processing-instruction and the
the DiffSupport.REVISIONS_PROPERTY
document property
as the xxe-revisions
processing-instruction.DocumentIndenter.Layout, DocumentIndenter.State
addOpenLines, guessContentType, guessed, indent, MAX_INDENT, maxLineLength, MIN_LINE_LENGTH, stateStack, stateStackSize, structure
cdataSections, documentType, duplicateIDFilter, favorInteroperability, filterDuplicateIDs, out, predeclarePrefixPrefs, preserveInclusions, qNameHelper, textHelper
Constructor and Description |
---|
DocumentIndenter(Writer out) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginWrite(Document document) |
protected void |
beginWrite(Element element) |
protected void |
endWrite(Document document) |
protected boolean |
isEmptyElement(Element element) |
protected void |
writeElementProperties(Element element)
Write certain element properties in the form of processing-instructions.
|
computeLineEnd, createInitialState, getAddOpenLines, getElementAttribute, getIndent, getMaxLineLength, hasEmptyContentType, popElement, popInclusion, popState, pushElement, pushInclusion, pushState, setAddOpenLines, setDocumentType, setIndent, setMaxLineLength, topState, write, write, writeAttribute, writeCDATA, writeComment, writeElement, writeEmptyEndTag, writeEndTag, writeInclusion, writeProcessingInstruction, writeStartTag, writeText
addXMLBase, checkComment, checkProcessingInstruction, endWrite, flush, getCdataSectionElements, getCharEntities, getCharsSavedAsEntityRefs, getDocumentType, getEncoding, getFavorInteroperability, getFilterDuplicateIDs, getPredeclarePrefixPreferences, getPrefixPreferences, getPreserveInclusions, getWriter, predeclarePrefixPrefs, setCdataSectionElements, setCharEntities, setCharsSavedAsEntityRefs, setEncoding, setFavorInteroperability, setFilterDuplicateIDs, setPredeclarePrefixPreferences, setPrefixPreferences, setPreserveInclusions, shorten, writeAttributes, writeDocumentTypeDeclaration, writeEntityRef, writeFrame
public DocumentIndenter(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
protected void endWrite(Document document) throws IOException
endWrite
in class DocumentWriter
IOException