public interface ParserAdaptor
| 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.
|
void parse(Rewriter rewriter, Reader reader) throws RewriterException
reader - the input stream over the content to be parsed.RewriteException - when a parsing error occurs or unexpected content is found.RewriterExceptionvoid rewrite(Rewriter rewriter, Reader reader, Writer writer) throws RewriterException
reader - the input stream over the content to be parsed.writer - the output stream where content is rewritten to.RewriteException - when a parsing error occurs or unexpected content is found.RewriterExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.