Package com.day.cq.rewriter.htmlparser
Class HtmlParser
java.lang.Object
java.io.Writer
com.day.cq.rewriter.htmlparser.HtmlParser
- All Implemented Interfaces:
Generator,Closeable,Flushable,Appendable,AutoCloseable
Deprecated.
HTML parser. Invokes a
DocumentHandler whenever an event occurs.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.HtmlParser(String[] includedTags) Deprecated.HtmlParser(String[] includedTags, boolean preserveCamelCase) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidfinished()Deprecated.Finish the parsing process.voidflush()Deprecated.Deprecated.Deprecated.Get the writer to write the output to.voidinit(ProcessingContext pipelineContext, ProcessingComponentConfiguration config) Deprecated.Initialize this component.booleanisEmpty()Deprecated.Return a flag indicating whether the parser has still some undigested characters left.voidsetContentHandler(ContentHandler handler) Deprecated.Set the content handler the generator should stream to.voidsetDocumentHandler(DocumentHandler documentHandler) Deprecated.Set document handler.voidsetTagInclusionSet(Set<String> tagInclusionSet) Deprecated.toString()Deprecated.voidupdate(char[] buf, int off, int len) Deprecated.Feed characters to the parser.voidwrite(char[] cbuf, int off, int len) Deprecated.voidwrite(int b) Deprecated.
-
Field Details
-
INCLUDE_TAGS_PROPERTY
Deprecated.- See Also:
-
-
Constructor Details
-
HtmlParser
public HtmlParser()Deprecated.Default constructor. -
HtmlParser
Deprecated. -
HtmlParser
Deprecated.
-
-
Method Details
-
init
Deprecated.Description copied from interface:GeneratorInitialize this component. -
getWriter
Deprecated.Description copied from interface:GeneratorGet the writer to write the output to. -
getTagInclusionSet
Deprecated. -
setTagInclusionSet
Deprecated. -
setContentHandler
Deprecated.Description copied from interface:GeneratorSet the content handler the generator should stream to.- Specified by:
setContentHandlerin interfaceGenerator- Parameters:
handler- A transformer or serializer.- See Also:
-
setDocumentHandler
Deprecated.Set document handler. Allows a component to get notified about the events, before characters are decomposed into attributes.- Parameters:
documentHandler- document handler
-
write
Deprecated.- Specified by:
writein classWriter- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classWriter- Throws:
IOException
-
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
Deprecated.- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
update
Deprecated.Feed characters to the parser.- Parameters:
buf- character bufferoff- offset where characters startlen- length of affected buffer- Throws:
IOException-IOException
-
isEmpty
public boolean isEmpty()Deprecated.Return a flag indicating whether the parser has still some undigested characters left.- Returns:
trueif the parser still contains charactersfalseotherwise
-
finished
Deprecated.Finish the parsing process. This forces the parser to flush the characters still held in its internal buffer, regardless of the parsing state.- Specified by:
finishedin interfaceGenerator- Throws:
IOException-IOException
-
toString
Deprecated.
-