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.String
INCLUDE_TAGS_PROPERTY
Deprecated.
-
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 void
close()
Deprecated.void
finished()
Deprecated.Finish the parsing process.void
flush()
Deprecated.java.util.Set<java.lang.String>
getTagInclusionSet()
Deprecated.java.io.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(org.xml.sax.ContentHandler handler)
Deprecated.Set the content handler the generator should stream to.void
setDocumentHandler(DocumentHandler documentHandler)
Deprecated.Set document handler.void
setTagInclusionSet(java.util.Set<java.lang.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.
-
-
-
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:Generator
Initialize this component.- Specified by:
init
in 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:Generator
Get the writer to write the output to.- Specified by:
getWriter
in 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:Generator
Set the content handler the generator should stream to.- Specified by:
setContentHandler
in 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.IOException
Deprecated.- Specified by:
write
in classjava.io.Writer
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
Deprecated.- Overrides:
write
in classjava.io.Writer
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Writer
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
Deprecated.- Specified by:
flush
in interfacejava.io.Flushable
- Specified by:
flush
in classjava.io.Writer
- Throws:
java.io.IOException
-
update
public void update(char[] buf, int off, int len) throws java.io.IOException
Deprecated.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:
true
if the parser still contains charactersfalse
otherwise
-
finished
public void finished() throws java.io.IOException
Deprecated.Finish the parsing process. This forces the parser to flush the characters still held in its internal buffer, regardless of the parsing state.
-
-