org.apache.jetspeed.rewriter.html
Class SwingParserAdaptor

java.lang.Object
  extended by org.apache.jetspeed.rewriter.html.SwingParserAdaptor
All Implemented Interfaces:
ParserAdaptor

public class SwingParserAdaptor
extends 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

Nested Class Summary
(package private)  class SwingParserAdaptor.Callback
           
(package private)  class SwingParserAdaptor.ParserGetter
           
 
Field Summary
private  SwingParserAdaptor.Callback callback
           
private  String lineSeparator
           
protected static org.apache.commons.logging.Log log
           
private  Rewriter rewriter
           
private  boolean skippingImplied
           
 
Constructor Summary
SwingParserAdaptor()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

callback

private SwingParserAdaptor.Callback callback

lineSeparator

private String lineSeparator

skippingImplied

private boolean skippingImplied

rewriter

private Rewriter rewriter
Constructor Detail

SwingParserAdaptor

public SwingParserAdaptor()
Method Detail

rewrite

public void rewrite(Rewriter rewriter,
                    Reader reader,
                    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,
                  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-2007 Apache Software Foundation. All Rights Reserved.