| org.apache.jetspeed.rewriter.ParserAdaptor
All known Subclasses: org.apache.jetspeed.rewriter.xml.SaxParserAdaptor, org.apache.jetspeed.rewriter.html.neko.NeckoHTMLParserAdapter, org.apache.jetspeed.rewriter.html.neko.NekoParserAdaptor, org.apache.jetspeed.rewriter.html.SwingParserAdaptor,
ParserAdaptor | public interface ParserAdaptor (Code) | | Interface for HTML Parser Adaptors.
Adaptors normalize the interface over HTML and XML adaptor implementations.
author: David Sean Taylor version: $Id: ParserAdaptor.java 516448 2007-03-09 16:25:47Z ate $ |
Method Summary | |
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. |
parse | void parse(Rewriter rewriter, Reader reader) throws RewriterException(Code) | | Parses a document from the reader, without actually rewriting URLs.
During parsing the events are called back on the given rewriter to handle the normalized events.
Parameters: reader - the input stream over the content to be parsed. exception: RewriteException - when a parsing error occurs or unexpected content is found. |
rewrite | void rewrite(Rewriter rewriter, Reader reader, Writer writer) throws RewriterException(Code) | | Parses and rewrites a document from the reader, rewriting URLs via the rewriter's events to the writer.
During parsing the rewriter events are called on the given rewriter to handle the rewriting.
Parameters: reader - the input stream over the content to be parsed. Parameters: writer - the output stream where content is rewritten to. exception: RewriteException - when a parsing error occurs or unexpected content is found. |
|
|