public class TextSerializationUnit extends DefaultSerializationUnit implements SAXVisitBefore
| Constructor and Description |
|---|
TextSerializationUnit() |
| Modifier and Type | Method and Description |
|---|---|
static Element |
createTextElement(Element element,
String templatingResult) |
static String |
getText(Element element) |
static boolean |
isTextElement(Element element) |
void |
visitBefore(SAXElement element,
ExecutionContext executionContext)
Visit the supplied element before visiting its child elements.
|
void |
writeElementEnd(Element element,
Writer writer,
ExecutionContext executionContext)
Write the element end portion; close the element.
|
void |
writeElementStart(Element element,
Writer writer,
ExecutionContext executionContext)
Write the element start portion; the element name and it's
attributes.
|
isRewriteEntities, setCloseEmptyElements, setRewriteEntities, writeAttributes, writeChildElements, writeElementCDATA, writeElementComment, writeElementEnd, writeElementEntityRef, writeElementNode, writeElementStart, writeElementTextpublic void writeElementStart(Element element, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementStart in interface SerializationUnitwriteElementStart in class DefaultSerializationUnitelement - The element start to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementEnd(Element element, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementEnd in interface SerializationUnitwriteElementEnd in class DefaultSerializationUnitelement - The element end to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
SAXVisitBeforevisitBefore in interface SAXVisitBeforeelement - The SAX element being visited.executionContext - Execution context.SmooksException - Event processing failure.IOException - Error writing event to output writer.public static boolean isTextElement(Element element)
Copyright © 2020. All rights reserved.