Package com.saxonica.serialize
Class XMLIndenterPE
java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
net.sf.saxon.serialize.XMLIndenter
com.saxonica.serialize.XMLIndenterPE
XMLIndenter with extra functionality for Saxon-PE and Saxon-EE
-
Field Summary
Fields inherited from class net.sf.saxon.event.ProxyReceiver
nextReceiver
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemId
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Get the number of spaces to be used for indentationprotected int
Get the suggested maximum length of a lineprotected boolean
isDoubleSpaced
(NodeName name) Ask whether a particular element is to be double-spacedvoid
setOutputProperties
(Properties props) Set the properties for this indenterMethods inherited from class net.sf.saxon.serialize.XMLIndenter
characters, comment, endDocument, endElement, open, processingInstruction, startElement, usesTypeAnnotations
Methods inherited from class net.sf.saxon.event.ProxyReceiver
append, close, getNamePool, getNextReceiver, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument
Methods inherited from class net.sf.saxon.event.SequenceReceiver
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
-
Constructor Details
-
XMLIndenterPE
-
-
Method Details
-
setOutputProperties
Set the properties for this indenter- Overrides:
setOutputProperties
in classXMLIndenter
- Parameters:
props
- the serialization properties
-
isDoubleSpaced
Description copied from class:XMLIndenter
Ask whether a particular element is to be double-spaced- Overrides:
isDoubleSpaced
in classXMLIndenter
- Parameters:
name
- the element name- Returns:
- true if double-spacing is in effect for this element
-
getIndentation
protected int getIndentation()Description copied from class:XMLIndenter
Get the number of spaces to be used for indentation- Overrides:
getIndentation
in classXMLIndenter
- Returns:
- the number of spaces to be added to the indentation for each level
-
getLineLength
protected int getLineLength()Description copied from class:XMLIndenter
Get the suggested maximum length of a line- Overrides:
getLineLength
in classXMLIndenter
- Returns:
- the suggested maximum line length (used for wrapping attributes)
-