Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INCLUDE_TAGS_PROPERTY
Deprecated.
|
Constructor and Description |
---|
HtmlParser()
Deprecated.
Default constructor.
|
HtmlParser(java.lang.String[] includedTags)
Deprecated.
|
HtmlParser(java.lang.String[] includedTags,
boolean preserveCamelCase)
Deprecated.
|
Modifier and Type | Method and 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.
|
public static final java.lang.String INCLUDE_TAGS_PROPERTY
public HtmlParser()
public HtmlParser(java.lang.String[] includedTags)
public HtmlParser(java.lang.String[] includedTags, boolean preserveCamelCase)
public void init(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)
Generator
init
in interface Generator
pipelineContext
- The invocation context.config
- The configuration for this component.Generator.init(com.day.cq.rewriter.processor.ProcessingContext,
com.day.cq.rewriter.processor.ProcessingComponentConfiguration)
public java.io.PrintWriter getWriter()
Generator
getWriter
in interface Generator
Generator.getWriter()
public java.util.Set<java.lang.String> getTagInclusionSet()
public void setTagInclusionSet(java.util.Set<java.lang.String> tagInclusionSet)
public void setContentHandler(org.xml.sax.ContentHandler handler)
Generator
setContentHandler
in interface Generator
handler
- 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 java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void update(char[] buf, int off, int len) throws java.io.IOException
buf
- character bufferoff
- offset where characters startlen
- length of affected bufferjava.io.IOException
- IOException
public boolean isEmpty()
true
if the parser still contains characters
false
otherwisepublic void finished() throws java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved