Package org.codehaus.cargo.module.ejb
Class EjbJarXmlIo
- java.lang.Object
-
- org.codehaus.cargo.module.AbstractDescriptorIo
-
- org.codehaus.cargo.module.ejb.EjbJarXmlIo
-
- All Implemented Interfaces:
DescriptorIo
public class EjbJarXmlIo extends AbstractDescriptorIo
Provides convenience methods for reading and writing ejb deployment descriptors (ejb-jar.xml).
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EjbJarXmlIo()
Protected constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EjbJarXml
parseEjbJarXml(InputStream input, EntityResolver entityResolver)
Parses a deployment descriptor provided as input stream.-
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptorIo
createDocumentBuilder, createDocumentBuilder, getEntityResolver, parseXml, parseXml, writeAll, writeDescriptor, writeDescriptor, writeDescriptor, writeDescriptor
-
-
-
-
Method Detail
-
parseEjbJarXml
public static EjbJarXml parseEjbJarXml(InputStream input, EntityResolver entityResolver) throws IOException, org.jdom2.JDOMException
Parses a deployment descriptor provided as input stream.- Parameters:
input
- The input streamentityResolver
- A SAX entity resolver, ornull
to use the default- Returns:
- The parsed descriptor
- Throws:
IOException
- If an I/O error occursorg.jdom2.JDOMException
- If the XML parser was not correctly configured
-
-