Ant API: Class Parser

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant
Class Parser

    java.lang.Object
      |
      +--org.apache.tools.ant.Parser

Direct Known Subclasses:
  ApacheParser, SunParser

public abstract class Parser
extends java.lang.Object

Dummy parser abstraction class for ANT to be used until the Java API for XML Parsing are released.

Author:
  pier@apache.org

Constructor Summary
`Parser()`

Method Summary
`static Parser` | `getParser(Project project)` Create a working instance of a parser
`abstract org.w3c.dom.Document` | `parse(java.io.File f)` Parse the specified file and return a DOM Document.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Parser

    public Parser()

Method Detail

### getParser

    public static Parser getParser(Project project)
                            throws BuildException

  Create a working instance of a parser

### parse

    public abstract org.w3c.dom.Document parse(java.io.File f)
                                        throws org.xml.sax.SAXException,
                                               java.io.IOException

  Parse the specified file and return a DOM Document.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000 Apache Software Foundation. All Rights Reserved.