@Deprecated public class HtmlParser extends Writer implements Generator
DocumentHandler whenever an event occurs.| Modifier and Type | Field and Description |
|---|---|
static String |
INCLUDE_TAGS_PROPERTY
Deprecated.
|
| Constructor and Description |
|---|
HtmlParser()
Deprecated.
Default constructor.
|
HtmlParser(String[] includedTags)
Deprecated.
|
HtmlParser(String[] includedTags,
boolean preserveCamelCase)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
finished()
Deprecated.
Finish the parsing process.
|
void |
flush()
Deprecated.
|
Set<String> |
getTagInclusionSet()
Deprecated.
|
PrintWriter |
getWriter()
Deprecated.
Get the writer to write the output to.
|
void |
init(ProcessingContext pipelineContext,
ProcessingComponentConfiguration config)
Deprecated.
Initialize this component.
|
boolean |
isEmpty()
Deprecated.
Return a flag indicating whether the parser has still some undigested
characters left.
|
void |
setContentHandler(ContentHandler handler)
Deprecated.
Set the content handler the generator should stream to.
|
void |
setDocumentHandler(DocumentHandler documentHandler)
Deprecated.
Set document handler.
|
void |
setTagInclusionSet(Set<String> tagInclusionSet)
Deprecated.
|
void |
update(char[] buf,
int off,
int len)
Deprecated.
Feed characters to the parser.
|
void |
write(char[] cbuf,
int off,
int len)
Deprecated.
|
void |
write(int b)
Deprecated.
|
public static final String INCLUDE_TAGS_PROPERTY
public HtmlParser()
public HtmlParser(String[] includedTags)
public HtmlParser(String[] includedTags, boolean preserveCamelCase)
public void init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)
Generatorinit in interface GeneratorpipelineContext - The invocation context.config - The configuration for this component.Generator.init(com.day.cq.rewriter.processor.ProcessingContext,
com.day.cq.rewriter.processor.ProcessingComponentConfiguration)public PrintWriter getWriter()
GeneratorgetWriter in interface GeneratorGenerator.getWriter()public void setContentHandler(ContentHandler handler)
GeneratorsetContentHandler in interface Generatorhandler - A transformer or serializer.Generator.setContentHandler(org.xml.sax.ContentHandler)public void setDocumentHandler(DocumentHandler documentHandler)
documentHandler - document handlerpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(int b)
throws IOException
write in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void update(char[] buf,
int off,
int len)
throws IOException
buf - character bufferoff - offset where characters startlen - length of affected bufferIOException - IOExceptionpublic boolean isEmpty()
true if the parser still contains characters
false otherwisepublic void finished()
throws IOException
finished in interface GeneratorIOException - IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved