Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.w3c.dom.Document
create()
Create a new empty DOM Document object.org.w3c.dom.Document
parse(java.net.URL url)
Parse the specified InputSource.org.w3c.dom.Document
parse(org.xml.sax.InputSource in)
Parse the specified InputSource.
-
-
-
Method Detail
-
parse
org.w3c.dom.Document parse(org.xml.sax.InputSource in) throws java.io.IOException, CreationException
Parse the specified InputSource.- 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.
-
parse
org.w3c.dom.Document parse(java.net.URL url) throws java.io.IOException, CreationException
Parse the specified InputSource.- 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.
-
create
org.w3c.dom.Document create()
Create a new empty DOM Document object.- Returns:
- A non-null DOM Document object.
-
-