org.apache.cocoon.parser
Class SunXMLParser
java.lang.Object
|
+--org.apache.cocoon.framework.AbstractActor
|
+--org.apache.cocoon.parser.SunXMLParser
- public class SunXMLParser
- extends AbstractActor
- implements Parser, Status
This class implements an XML parser using the Sun ProjectX parser.
Update to work with the 'Technology Release 1, Feb. 24, 1999'
version of the Sun XML parser.
- Version:
- $Revision: 1.9 $ $Date: 1999/10/24 09:44:52 $
- Author:
- Stefano Mazzocchi
Field Summary |
(package private) com.sun.xml.tree.XmlDocument |
factory
|
Method Summary |
org.w3c.dom.Document |
createEmptyDocument()
Creates an empty DOM tree. |
java.lang.String |
getStatus()
Returns information about the status of the implementing class.
|
org.w3c.dom.Document |
parse(java.io.Reader in,
java.lang.String sourceURI)
Creates a DOM tree parsing the given input stream. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
factory
com.sun.xml.tree.XmlDocument factory
SunXMLParser
public SunXMLParser()
parse
public org.w3c.dom.Document parse(java.io.Reader in,
java.lang.String sourceURI)
throws java.io.IOException
- Description copied from interface: Parser
- Creates a DOM tree parsing the given input stream.
- Specified by:
- parse in interface Parser
createEmptyDocument
public org.w3c.dom.Document createEmptyDocument()
- Description copied from interface: Parser
- Creates an empty DOM tree.
- Specified by:
- createEmptyDocument in interface Parser
getStatus
public java.lang.String getStatus()
- Description copied from interface: Status
- Returns information about the status of the implementing class.
Note: this is use instead of the usual
toString()
method because some of these methods are declared final in some
classes in JDK 1.1.
- Specified by:
- getStatus in interface Status
Copyright 1999 Java Apache Project. All Rights Reserved.