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 TypeMethodDescriptionvoid
close()
Deprecated.void
finished()
Deprecated.Finish the parsing process.void
flush()
Deprecated.Deprecated.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.toString()
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.
-
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:Generator
Initialize this component. -
getWriter
Deprecated.Description copied from interface:Generator
Get the writer to write the output to. -
getTagInclusionSet
Deprecated. -
setTagInclusionSet
Deprecated. -
setContentHandler
Deprecated.Description copied from interface:Generator
Set the content handler the generator should stream to.- Specified by:
setContentHandler
in 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:
write
in classWriter
- Throws:
IOException
-
write
Deprecated.- Overrides:
write
in classWriter
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
Deprecated.- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in 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:
true
if the parser still contains charactersfalse
otherwise
-
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:
finished
in interfaceGenerator
- Throws:
IOException
-IOException
-
toString
Deprecated.
-