public class WebtopParser extends Object
Constructor and Description |
---|
WebtopParser()
Constructs a
WebtopParser instance. |
WebtopParser(boolean usegeneric)
Sets whether to use the default
GenericNode as the node
type. |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv) |
Object |
parse(InputStream xmlin)
Parses an XML document.
|
Object |
parse(String s)
Parses an XML document from a String variable.
|
void |
register(String elemname,
String classname)
Registers a call back function.
|
public WebtopParser()
WebtopParser
instance.public WebtopParser(boolean usegeneric)
GenericNode
as the node
type.usegeneric
- true
if GenericNode
type is
to be used.public Object parse(String s) throws Exception
s
- The XML document.Exception
- if there are unsupported encoding issues.public Object parse(InputStream xmlin) throws Exception
xmlin
- the XML document.Exception
- if there are IO or XML parsing exceptions.Copyright © 2010-2018, ForgeRock All Rights Reserved.