Package com.day.cq.rewriter.htmlparser
Class HtmlParser
- java.lang.Object
-
- java.io.Writer
-
- com.day.cq.rewriter.htmlparser.HtmlParser
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINCLUDE_TAGS_PROPERTYDeprecated.
-
Constructor Summary
Constructors Constructor Description HtmlParser()Deprecated.Default constructor.HtmlParser(java.lang.String[] includedTags)Deprecated.HtmlParser(java.lang.String[] includedTags, boolean preserveCamelCase)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidfinished()Deprecated.Finish the parsing process.voidflush()Deprecated.java.util.Set<java.lang.String>getTagInclusionSet()Deprecated.java.io.PrintWritergetWriter()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(org.xml.sax.ContentHandler handler)Deprecated.Set the content handler the generator should stream to.voidsetDocumentHandler(DocumentHandler documentHandler)Deprecated.Set document handler.voidsetTagInclusionSet(java.util.Set<java.lang.String> tagInclusionSet)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 Detail
-
INCLUDE_TAGS_PROPERTY
public static final java.lang.String INCLUDE_TAGS_PROPERTY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)
Deprecated.Description copied from interface:GeneratorInitialize this component.- Specified by:
initin interfaceGenerator- Parameters:
pipelineContext- The invocation context.config- The configuration for this component.- See Also:
Generator.init(com.day.cq.rewriter.processor.ProcessingContext, com.day.cq.rewriter.processor.ProcessingComponentConfiguration)
-
getWriter
public java.io.PrintWriter getWriter()
Deprecated.Description copied from interface:GeneratorGet the writer to write the output to.- Specified by:
getWriterin interfaceGenerator- Returns:
- A print writer.
- See Also:
Generator.getWriter()
-
getTagInclusionSet
public java.util.Set<java.lang.String> getTagInclusionSet()
Deprecated.
-
setTagInclusionSet
public void setTagInclusionSet(java.util.Set<java.lang.String> tagInclusionSet)
Deprecated.
-
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
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:
Generator.setContentHandler(org.xml.sax.ContentHandler)
-
setDocumentHandler
public void setDocumentHandler(DocumentHandler documentHandler)
Deprecated.Set document handler. Allows a component to get notified about the events, before characters are decomposed into attributes.- Parameters:
documentHandler- document handler
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOExceptionDeprecated.- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.Writer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOExceptionDeprecated.- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
update
public void update(char[] buf, int off, int len) throws java.io.IOExceptionDeprecated.Feed characters to the parser.- Parameters:
buf- character bufferoff- offset where characters startlen- length of affected buffer- Throws:
java.io.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
public void finished() throws java.io.IOExceptionDeprecated.Finish the parsing process. This forces the parser to flush the characters still held in its internal buffer, regardless of the parsing state.
-
-