public class SwingParserAdaptor extends Object implements ParserAdaptor
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
SwingParserAdaptor() |
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.
|
public void rewrite(Rewriter rewriter, Reader reader, Writer writer) throws RewriterException
ParserAdaptor
rewrite
in interface ParserAdaptor
reader
- the input stream over the content to be parsed.writer
- the output stream where content is rewritten to.RewriterException
public void parse(Rewriter rewriter, Reader reader) throws RewriterException
ParserAdaptor
parse
in interface ParserAdaptor
reader
- the input stream over the content to be parsed.RewriterException
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.