|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.util.xmlparser.XmlParser
public class XmlParser
The main entry point && bulk of XmlParser. The parsing routine takes an entry-point tag, which provides information about subtags, attributes it takes, etc. Tags can implement various interfaces to tell the parser to call back when certain conditions are met. This class takes the role of both a minimal validator as well as a traversal mechanism for building data objects out of XML.
Method Summary | |
---|---|
static void |
dump(XmlTagHandler root,
java.io.PrintStream out)
|
static void |
dumpWiki(XmlTagHandler root,
java.io.PrintStream out)
|
static void |
parse(java.io.File in,
XmlTagHandler tag)
Parse a file, which should have a root which is the associated tag. |
static void |
parse(java.io.InputStream is,
XmlTagHandler tag)
Parse an input stream, otherwise the same as parsing a file |
static void |
parse(java.io.InputStream is,
XmlTagHandler tag,
org.xml.sax.EntityResolver resolver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void parse(java.io.InputStream is, XmlTagHandler tag) throws XmlParseException
XmlParseException
public static void parse(java.io.InputStream is, XmlTagHandler tag, org.xml.sax.EntityResolver resolver) throws XmlParseException
XmlParseException
public static void parse(java.io.File in, XmlTagHandler tag) throws XmlParseException
in
- File to parsetag
- Root tag which the parsed file should contain
XmlParseException
public static void dump(XmlTagHandler root, java.io.PrintStream out)
public static void dumpWiki(XmlTagHandler root, java.io.PrintStream out)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |