Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sitemesh.parser
Class AbstractPageParser  view AbstractPageParser download AbstractPageParser.java

java.lang.Object
  extended bycom.sitemesh.parser.AbstractPageParser
All Implemented Interfaces:
com.sitemesh.PageParser
Direct Known Subclasses:
DOMPageParser

public abstract class AbstractPageParser
extends java.lang.Object
implements com.sitemesh.PageParser

Abstract implementation of com.sitemesh.PageParser. All methods convert input into byte[], meaning only that method need be implemented.

Version:
$Revision: 1.5 $

Constructor Summary
AbstractPageParser()
           
 
Method Summary
abstract  com.sitemesh.Page parse(byte[] data)
          Method to be implemented by sub-classes.
 com.sitemesh.Page parse(char[] data)
           
 com.sitemesh.Page parse(org.xml.sax.InputSource in)
           
 com.sitemesh.Page parse(java.io.InputStream in)
           
 com.sitemesh.Page parse(java.io.Reader in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPageParser

public AbstractPageParser()
Method Detail

parse

public abstract com.sitemesh.Page parse(byte[] data)
                                 throws java.io.IOException
Method to be implemented by sub-classes.

Specified by:
parse in interface com.sitemesh.PageParser

parse

public com.sitemesh.Page parse(java.io.InputStream in)
                        throws java.io.IOException
Specified by:
parse in interface com.sitemesh.PageParser

parse

public com.sitemesh.Page parse(java.io.Reader in)
                        throws java.io.IOException
Specified by:
parse in interface com.sitemesh.PageParser

parse

public com.sitemesh.Page parse(org.xml.sax.InputSource in)
                        throws java.io.IOException
Specified by:
parse in interface com.sitemesh.PageParser

parse

public com.sitemesh.Page parse(char[] data)
                        throws java.io.IOException
Specified by:
parse in interface com.sitemesh.PageParser