org.apache.stylebook.parsers
Class AbstractParser

java.lang.Object
  extended by org.apache.stylebook.AbstractComponent
      extended by org.apache.stylebook.parsers.AbstractParser
All Implemented Interfaces:
Component, Parser
Direct Known Subclasses:
CachingParser, XercesParser

public abstract class AbstractParser
extends AbstractComponent
implements Parser

Version:
CVS $Revision: 313202 $ $Date: 1999-11-30 12:28:55 +0000 (Tue, 30 Nov 1999) $
Author:
Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.

Field Summary
 
Fields inherited from class org.apache.stylebook.AbstractComponent
engine, params
 
Constructor Summary
AbstractParser()
           
 
Method Summary
 org.w3c.dom.Document parse(java.net.URL in)
          Parse the specified InputSource.
 
Methods inherited from class org.apache.stylebook.AbstractComponent
debug, init, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.stylebook.Parser
create, parse
 
Methods inherited from interface org.apache.stylebook.Component
init
 

Constructor Detail

AbstractParser

public AbstractParser()
Method Detail

parse

public org.w3c.dom.Document parse(java.net.URL in)
                           throws java.io.IOException,
                                  CreationException
Description copied from interface: Parser
Parse the specified InputSource.

Specified by:
parse in interface Parser
Returns:
A non-null DOM Document object.
Throws:
java.io.IOException - If an I/O error occourred accessing the specified System-ID.
CreationException - If an error occourred parsing the document.