org.apache.stylebook
Interface Parser

All Superinterfaces:
Component
All Known Implementing Classes:
AbstractParser, CachingParser, XercesParser

public interface Parser
extends Component

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.

Method Summary
 Document create()
          Create a new empty DOM Document object.
 Document parse(InputSource in)
          Parse the specified InputSource.
 Document parse(URL url)
          Parse the specified InputSource.
 
Methods inherited from interface org.apache.stylebook.Component
init
 

Method Detail

parse

Document parse(InputSource in)
               throws IOException,
                      CreationException
Parse the specified InputSource.

Parameters:
in - The InputSource to parse.
Returns:
A non-null DOM Document object.
Throws:
IOException - If an I/O error occourred accessing the specified System-ID.
CreationException - If an error occourred parsing the document.

parse

Document parse(URL url)
               throws IOException,
                      CreationException
Parse the specified InputSource.

Parameters:
in - The InputSource to parse.
Returns:
A non-null DOM Document object.
Throws:
IOException - If an I/O error occourred accessing the specified System-ID.
CreationException - If an error occourred parsing the document.

create

Document create()
Create a new empty DOM Document object.

Returns:
A non-null DOM Document object.