public interface Generator
Generator interface defines the start of a rewriter pipeline.
A generator is not a component managed by the container (OSGi). A
GeneratorFactory is a service managed by the container which creates
generator instances on demand.| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the generator.
|
void |
finished()
Notify the generator that parsing is finished.
|
java.io.PrintWriter |
getWriter()
Get the writer to write the output to.
|
void |
init(ProcessingContext context,
ProcessingComponentConfiguration config)
Initialize this component.
|
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Set the content handler the generator should stream to.
|
void init(ProcessingContext context, ProcessingComponentConfiguration config) throws java.io.IOException
context - The invocation context.config - The configuration for this component.java.io.IOException - in case of any problemsvoid setContentHandler(org.xml.sax.ContentHandler handler)
handler - A transformer or serializer.java.io.PrintWriter getWriter()
void finished()
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException - IOExceptionorg.xml.sax.SAXException - SAXExceptionvoid dispose()
Copyright © 2010 - 2023 Adobe. All Rights Reserved