public static final class HtmlGeneratorFactory.HtmlGenerator extends Object implements Generator
Constructor and Description |
---|
HtmlGenerator(org.apache.sling.commons.html.HtmlParser parser) |
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.
|
public HtmlGenerator(org.apache.sling.commons.html.HtmlParser parser)
public void finished() throws IOException, SAXException
Generator
finished
in interface Generator
IOException
SAXException
Generator.finished()
public PrintWriter getWriter()
Generator
getWriter
in interface Generator
Generator.getWriter()
public void init(ProcessingContext context, ProcessingComponentConfiguration config) throws IOException
Generator
init
in interface Generator
context
- The invocation context.config
- The configuration for this component.IOException
public void setContentHandler(ContentHandler handler)
Generator
setContentHandler
in interface Generator
handler
- A transformer or serializer.Generator.setContentHandler(org.xml.sax.ContentHandler)
public void dispose()
Generator
dispose
in interface Generator
Generator.dispose()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.