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
-
- All Implemented Interfaces:
javax.xml.transform.Result,Receiver
public class XMLIndenterPE extends XMLIndenter
XMLIndenter with extra functionality for Saxon-PE and Saxon-EE
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.serialize.XMLIndenter
indentChars
-
Fields inherited from class net.sf.saxon.event.ProxyReceiver
nextReceiver
-
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemId
-
-
Constructor Summary
Constructors Constructor Description XMLIndenterPE(XMLEmitter next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetIndentation()Get the number of spaces to be used for indentationprotected intgetLineLength()Get the suggested maximum length of a lineprotected booleanisDoubleSpaced(NodeName name)Ask whether a particular element is to be double-spacedvoidsetOutputProperties(java.util.Properties props)Set the properties for this indenter-
Methods 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 Detail
-
XMLIndenterPE
public XMLIndenterPE(XMLEmitter next)
-
-
Method Detail
-
setOutputProperties
public void setOutputProperties(java.util.Properties props)
Set the properties for this indenter- Overrides:
setOutputPropertiesin classXMLIndenter- Parameters:
props- the serialization properties
-
isDoubleSpaced
protected boolean isDoubleSpaced(NodeName name)
Description copied from class:XMLIndenterAsk whether a particular element is to be double-spaced- Overrides:
isDoubleSpacedin 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:XMLIndenterGet the number of spaces to be used for indentation- Overrides:
getIndentationin classXMLIndenter- Returns:
- the number of spaces to be added to the indentation for each level
-
getLineLength
protected int getLineLength()
Description copied from class:XMLIndenterGet the suggested maximum length of a line- Overrides:
getLineLengthin classXMLIndenter- Returns:
- the suggested maximum line length (used for wrapping attributes)
-
-