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.
|
PrintWriter |
getWriter()
Get the writer to write the output to.
|
void |
init(ProcessingContext context,
ProcessingComponentConfiguration config)
Initialize this component.
|
void |
setContentHandler(ContentHandler handler)
Set the content handler the generator should stream to.
|
void init(ProcessingContext context, ProcessingComponentConfiguration config) throws IOException
context
- The invocation context.config
- The configuration for this component.IOException
void setContentHandler(ContentHandler handler)
handler
- A transformer or serializer.PrintWriter getWriter()
void finished() throws IOException, SAXException
IOException
SAXException
void dispose()
Copyright © 2010 - 2020 Adobe. All Rights Reserved