org.apache.cactus.integration.ant.deployment
Class ApplicationXmlIo
java.lang.Object
org.apache.cactus.integration.ant.deployment.ApplicationXmlIo
- public class ApplicationXmlIo
- extends java.lang.Object
Provides convenience methods for reading and writing enterprise application
deployment descriptors (application.xml).
- Since:
- Cactus 1.5
- Version:
- $Id: ApplicationXmlIo.java,v 1.4 2003/06/29 14:57:53 cmlenz Exp $
- Author:
- Christopher Lenz
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationXmlIo
public ApplicationXmlIo()
parseApplicationXmlFromFile
public static ApplicationXml parseApplicationXmlFromFile(java.io.File theFile,
org.xml.sax.EntityResolver theEntityResolver)
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException
- Parses a deployment descriptor stored in a regular file.
- Parameters:
theFile
- The file to parsetheEntityResolver
- A SAX entity resolver, or null
to
use the default
- Returns:
- The parsed descriptor
- Throws:
org.xml.sax.SAXException
- If the file could not be parsed
javax.xml.parsers.ParserConfigurationException
- If the XML parser was not correctly
configured
java.io.IOException
- If an I/O error occurs
parseApplicationXml
public static ApplicationXml parseApplicationXml(java.io.InputStream theInput,
org.xml.sax.EntityResolver theEntityResolver)
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException
- Parses a deployment descriptor provided as input stream.
- Parameters:
theInput
- The input streamtheEntityResolver
- A SAX entity resolver, or null
to
use the default
- Returns:
- The parsed descriptor
- Throws:
org.xml.sax.SAXException
- If the input could not be parsed
javax.xml.parsers.ParserConfigurationException
- If the XML parser was not correctly
configured
java.io.IOException
- If an I/O error occurs
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.