|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.AbstractDescriptorIo
org.codehaus.cargo.module.webapp.WebXmlIo
public final class WebXmlIo
Provides convenience methods for reading and writing web deployment descriptors.
Constructor Summary | |
---|---|
WebXmlIo(DescriptorType type)
Constructor. |
Method Summary | |
---|---|
protected org.xml.sax.EntityResolver |
getEntityResolver()
Get the default entity resolver for this type. |
static WebXml |
newWebXml(WebXmlVersion theVersion)
Creates a new empty deployment descriptor. |
static WebXml |
parseWebXml(java.io.InputStream theInput,
org.xml.sax.EntityResolver theEntityResolver)
Parses a deployment descriptor provided as input stream. |
static WebXml |
parseWebXmlFromFile(java.io.File theFile,
org.xml.sax.EntityResolver theEntityResolver)
Parses a deployment descriptor stored in a regular file. |
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptorIo |
---|
createDocumentBuilder, createDocumentBuilder, parseXml, parseXml, writeAll, writeDescriptor, writeDescriptor, writeDescriptor, writeDescriptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebXmlIo(DescriptorType type)
type
- descriptor typeMethod Detail |
---|
protected org.xml.sax.EntityResolver getEntityResolver()
AbstractDescriptorIo
getEntityResolver
in class AbstractDescriptorIo
public static WebXml newWebXml(WebXmlVersion theVersion)
theVersion
- The version of the descriptor to create
public static WebXml parseWebXmlFromFile(java.io.File theFile, org.xml.sax.EntityResolver theEntityResolver) throws java.io.IOException, org.jdom.JDOMException
theFile
- The file to parsetheEntityResolver
- A SAX entity resolver, or null
to use the default
org.jdom.JDOMException
- If the file could not be parsed
java.io.IOException
- If an I/O error occurspublic static WebXml parseWebXml(java.io.InputStream theInput, org.xml.sax.EntityResolver theEntityResolver) throws java.io.IOException, org.jdom.JDOMException
theInput
- The input streamtheEntityResolver
- A SAX entity resolver, or null
to use the default
java.io.IOException
- If an I/O error occurs
org.jdom.JDOMException
- If the input could not be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |