Package com.day.cq.rewriter.pipeline
Interface Generator
- All Known Implementing Classes:
HtmlParser
Deprecated.
Use the Apache Sling Rewriter Module (org.apache.sling.rewriter.Generator)
The
Generator interface defines the start of a rewriter pipeline.-
Method Summary
Modifier and TypeMethodDescriptionvoidfinished()Deprecated.Notify the generator that parsing is finished.Deprecated.Get the writer to write the output to.voidinit(ProcessingContext context, ProcessingComponentConfiguration config) Deprecated.Initialize this component.voidsetContentHandler(ContentHandler handler) Deprecated.Set the content handler the generator should stream to.
-
Method Details
-
init
Deprecated.Initialize this component.- Parameters:
context- The invocation context.config- The configuration for this component.- Throws:
IOException-IOException
-
setContentHandler
Deprecated.Set the content handler the generator should stream to.- Parameters:
handler- A transformer or serializer.
-
getWriter
PrintWriter getWriter()Deprecated.Get the writer to write the output to.- Returns:
- A print writer.
-
finished
Deprecated.Notify the generator that parsing is finished.- Throws:
IOException-IOExceptionSAXException-SAXException
-