public abstract class AbstractTextLinesParserAdaptor extends Object implements ParserAdaptor
| Constructor and Description |
|---|
AbstractTextLinesParserAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(Rewriter rewriter,
Reader reader)
Parses a document from the reader, without actually rewriting URLs.
|
void |
rewrite(Rewriter rewriter,
Reader reader,
Writer writer)
Parses and rewrites a document from the reader, rewriting URLs via the rewriter's events to the writer.
|
protected abstract String |
rewriteLine(String line) |
public void rewrite(Rewriter rewriter, Reader reader, Writer writer) throws RewriterException
ParserAdaptorrewrite in interface ParserAdaptorreader - the input stream over the content to be parsed.writer - the output stream where content is rewritten to.RewriterExceptionpublic void parse(Rewriter rewriter, Reader reader) throws RewriterException
ParserAdaptorparse in interface ParserAdaptorreader - the input stream over the content to be parsed.RewriterExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.