public final class WebXmlIo extends AbstractDescriptorIo
Modifier and Type | Method and Description |
---|---|
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, writeAll, writeDescriptor, writeDescriptor, writeDescriptor, writeDescriptor
public static WebXml newWebXml(WebXmlVersion theVersion) throws ParserConfigurationException
theVersion
- The version of the descriptor to createParserConfigurationException
- If the XML parser was not correctly configuredpublic static WebXml parseWebXmlFromFile(File theFile, EntityResolver theEntityResolver) throws SAXException, ParserConfigurationException, IOException
theFile
- The file to parsetheEntityResolver
- A SAX entity resolver, or null
to use the defaultSAXException
- If the file could not be parsedParserConfigurationException
- If the XML parser was not correctly configuredIOException
- If an I/O error occurspublic static WebXml parseWebXml(InputStream theInput, EntityResolver theEntityResolver) throws SAXException, ParserConfigurationException, IOException
theInput
- The input streamtheEntityResolver
- A SAX entity resolver, or null
to use the defaultSAXException
- If the input could not be parsedParserConfigurationException
- If the XML parser was not correctly configuredIOException
- If an I/O error occursCopyright © 2004-2013 Codehaus. All Rights Reserved.