public final class WebXmlIo extends AbstractDescriptorIo
Constructor and Description |
---|
WebXmlIo(DescriptorType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected EntityResolver |
getEntityResolver()
Get the default entity resolver for this type.
|
static WebXml |
newWebXml(WebXmlVersion theVersion)
Creates a new empty deployment descriptor.
|
static WebXml |
parseWebXml(InputStream theInput,
EntityResolver theEntityResolver)
Parses a deployment descriptor provided as input stream.
|
static WebXml |
parseWebXmlFromFile(File theFile,
EntityResolver theEntityResolver)
Parses a deployment descriptor stored in a regular file.
|
createDocumentBuilder, createDocumentBuilder, parseXml, parseXml, writeAll, writeDescriptor, writeDescriptor, writeDescriptor, writeDescriptor
public WebXmlIo(DescriptorType type)
type
- descriptor typeprotected EntityResolver getEntityResolver()
AbstractDescriptorIo
getEntityResolver
in class AbstractDescriptorIo
public static WebXml newWebXml(WebXmlVersion theVersion)
theVersion
- The version of the descriptor to createpublic static WebXml parseWebXmlFromFile(File theFile, EntityResolver theEntityResolver) throws IOException, org.jdom.JDOMException
theFile
- The file to parsetheEntityResolver
- A SAX entity resolver, or null
to use the defaultorg.jdom.JDOMException
- If the file could not be parsedIOException
- If an I/O error occurspublic static WebXml parseWebXml(InputStream theInput, EntityResolver theEntityResolver) throws IOException, org.jdom.JDOMException
theInput
- The input streamtheEntityResolver
- A SAX entity resolver, or null
to use the defaultIOException
- If an I/O error occursorg.jdom.JDOMException
- If the input could not be parsedCopyright © 2004-2013 Codehaus. All Rights Reserved.