public class CachingParser extends AbstractParser implements Parser
engine, params
Constructor and Description |
---|
CachingParser() |
Modifier and Type | Method and Description |
---|---|
Document |
create()
Create a new empty DOM Document object.
|
void |
init(Engine e,
Parameters p)
Initialize this component instance.
|
Document |
parse(InputSource in)
Parse the specified InputSource.
|
parse
debug, log
public void init(Engine e, Parameters p) throws InitializationException
init
in interface Component
init
in class AbstractComponent
e
- The Engine owning this Component instancep
- This component initialization ParametersInitializationException
- If this Component instance cannot be
initialized.public Document create()
public Document parse(InputSource in) throws IOException, CreationException
parse
in interface Parser
in
- The InputSource to parse.IOException
- If an I/O error occourred accessing the specified
System-ID.CreationException
- If an error occourred parsing the document.