|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParserAdaptor
Interface for HTML Parser Adaptors. Adaptors normalize the interface over HTML and XML adaptor implementations.
| Method Summary | |
|---|---|
void |
parse(Rewriter rewriter,
java.io.Reader reader)
Parses a document from the reader, without actually rewriting URLs. |
void |
rewrite(Rewriter rewriter,
java.io.Reader reader,
java.io.Writer writer)
Parses and rewrites a document from the reader, rewriting URLs via the rewriter's events to the writer. |
| Method Detail |
|---|
void parse(Rewriter rewriter,
java.io.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.
RewriterException
void rewrite(Rewriter rewriter,
java.io.Reader reader,
java.io.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.
RewriterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||