All Packages Class Hierarchy This Package Previous Next Index
Class vnet.yawb.YAWBParser
java.lang.Object
|
+----vnet.yawb.YAWBParser
- public class YAWBParser
- extends Object
- implements DocumentHandler
Parses a YAWB XML document.
Not thread safe. Use an instance per thread.
-
base
-
-
elements
-
-
ROOT
-
-
YAWBParser()
-
-
characters(char[], int, int)
-
-
endDocument()
-
-
endElement(String)
-
-
ignorableWhitespace(char[], int, int)
-
-
main(String[])
- Simple test.
-
parse(InputSource)
-
-
parse(InputStream)
- Parses data from the given InputStream and returns a
vnet.markup.Document.
-
parse(Reader)
- Parses data from the given Reader and returns a vnet.markup.Document.
-
processingInstruction(String, String)
-
-
setDocumentLocator(Locator)
-
-
startDocument()
-
-
startElement(String, AttributeList)
-
base
protected Document base
elements
protected Stack elements
ROOT
public static final String ROOT
YAWBParser
public YAWBParser()
parse
public Document parse(Reader reader) throws IOException, YAWBException
- Parses data from the given Reader and returns a vnet.markup.Document.
The stream must contain well-formed XML, and valid according to the
current YAWB DTD.
- Parameters:
- reader - source Reader
- Returns:
- Returns the base Document
- Throws: IOException
- if an IO error occurs
- Throws: YAWBException
- if the XML document contained errors (validity
or well-formedness)
parse
public Document parse(InputStream input) throws IOException, YAWBException
- Parses data from the given InputStream and returns a
vnet.markup.Document. The stream must contain well-formed XML, and valid
according to the current YAWB DTD.
- Parameters:
- input - source InputStream
- Returns:
- Returns the base Document.
- Throws: IOException
- if an IO error occurs
- Throws: YAWBException
- if the XML document contained errors (validity
or well-formedness)
parse
protected Document parse(InputSource source) throws IOException, YAWBException
characters
public void characters(char arg1[],
int arg2,
int arg3) throws SAXException
endDocument
public void endDocument() throws SAXException
endElement
public void endElement(String arg1) throws SAXException
ignorableWhitespace
public void ignorableWhitespace(char arg1[],
int arg2,
int arg3) throws SAXException
processingInstruction
public void processingInstruction(String arg1,
String arg2) throws SAXException
setDocumentLocator
public void setDocumentLocator(Locator arg1)
startDocument
public void startDocument() throws SAXException
startElement
public void startElement(String arg1,
AttributeList arg2) throws SAXException
main
public static void main(String args[])
- Simple test. Looks for the file file etc/test.xml and parses it.
Outputs to System.out.
All Packages Class Hierarchy This Package Previous Next Index