Package org.apache.stylebook.parsers
Class CachingParser
- java.lang.Object
-
- org.apache.stylebook.AbstractComponent
-
- org.apache.stylebook.parsers.AbstractParser
-
- org.apache.stylebook.parsers.CachingParser
-
public class CachingParser extends AbstractParser implements Parser
- Version:
- CVS $Revision: 313202 $ $Date: 1999-11-30 13:28:55 +0100 (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
Constructors Constructor Description CachingParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Document
create()
Create a new empty DOM Document object.void
init(Engine e, Parameters p)
Initialize this component instance.org.w3c.dom.Document
parse(org.xml.sax.InputSource in)
Parse the specified InputSource.-
Methods inherited from class org.apache.stylebook.parsers.AbstractParser
parse
-
Methods inherited from class org.apache.stylebook.AbstractComponent
debug, log
-
-
-
-
Method Detail
-
init
public void init(Engine e, Parameters p) throws InitializationException
Initialize this component instance.- Specified by:
init
in interfaceComponent
- Overrides:
init
in classAbstractComponent
- Parameters:
e
- The Engine owning this Component instancep
- This component initialization Parameters- Throws:
InitializationException
- If this Component instance cannot be initialized.
-
create
public org.w3c.dom.Document create()
Create a new empty DOM Document object.
-
parse
public org.w3c.dom.Document parse(org.xml.sax.InputSource in) throws java.io.IOException, CreationException
Parse the specified InputSource.- Specified by:
parse
in interfaceParser
- Parameters:
in
- The InputSource to parse.- 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.
-
-