org.apache.jetspeed.rewriter.html
Class SwingParserAdaptor
java.lang.Object
org.apache.jetspeed.rewriter.html.SwingParserAdaptor
- All Implemented Interfaces:
- ParserAdaptor
public class SwingParserAdaptor
- extends java.lang.Object
- implements ParserAdaptor
HTML Parser Adaptor for the Swing 'HotJava' parser.
- Version:
- $Id: SwingParserAdaptor.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- David Sean Taylor
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
SwingParserAdaptor
public SwingParserAdaptor()
rewrite
public void rewrite(Rewriter rewriter,
java.io.Reader reader,
java.io.Writer writer)
throws RewriterException
- Description copied from interface:
ParserAdaptor
- 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.
- Specified by:
rewrite
in interface ParserAdaptor
reader
- the input stream over the content to be parsed.writer
- the output stream where content is rewritten to.
- Throws:
RewriterException
parse
public void parse(Rewriter rewriter,
java.io.Reader reader)
throws RewriterException
- Description copied from interface:
ParserAdaptor
- 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.
- Specified by:
parse
in interface ParserAdaptor
reader
- the input stream over the content to be parsed.
- Throws:
RewriterException
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.