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
Generatorfinished in interface GeneratorIOExceptionSAXExceptionGenerator.finished()public PrintWriter getWriter()
GeneratorgetWriter in interface GeneratorGenerator.getWriter()public void init(ProcessingContext context, ProcessingComponentConfiguration config) throws IOException
Generatorinit in interface Generatorcontext - The invocation context.config - The configuration for this component.IOExceptionpublic void setContentHandler(ContentHandler handler)
GeneratorsetContentHandler in interface Generatorhandler - A transformer or serializer.Generator.setContentHandler(org.xml.sax.ContentHandler)public void dispose()
Generatordispose in interface GeneratorGenerator.dispose()Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.