Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

## org.hyperic.util.xmlparser
Class XmlParser

    java.lang.Object
      org.hyperic.util.xmlparser.XmlParser

    public class XmlParser

extends java.lang.Object

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

### parse

    public static void parse(java.io.InputStream is,
                             XmlTagHandler tag)
                      throws XmlParseException

  Parse an input stream, otherwise the same as parsing a file

  Throws:
    `XmlParseException`

### parse

    public static void parse(java.io.InputStream is,
                             XmlTagHandler tag,
                             org.xml.sax.EntityResolver resolver)
                      throws XmlParseException

  Throws:
    `XmlParseException`

### parse

    public static void parse(java.io.File in,
                             XmlTagHandler tag)
                      throws XmlParseException

  Parse a file, which should have a root which is the associated tag.

  Parameters:
    `in` - File to parse
    `tag` - Root tag which the parsed file should contain
  Throws:
    `XmlParseException`

### dump

    public static void dump(XmlTagHandler root,
                            java.io.PrintStream out)

### dumpWiki

    public static void dumpWiki(XmlTagHandler root,
                                java.io.PrintStream out)

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.