| java.lang.Object org.apache.cactus.integration.ant.deployment.webapp.WebXmlIo
WebXmlIo | public class WebXmlIo (Code) | | Provides convenience methods for reading and writing web deployment
descriptors.
since: Cactus 1.5 version: $Id: WebXmlIo.java 239003 2004-05-31 20:05:27Z vmassol $ |
Method Summary | |
public static WebXml | newWebXml(WebXmlVersion theVersion) Creates a new empty deployment descriptor. | public static WebXml | parseWebXml(InputStream theInput, EntityResolver theEntityResolver) Parses a deployment descriptor provided as input stream. | public static WebXml | parseWebXmlFromFile(File theFile, EntityResolver theEntityResolver) Parses a deployment descriptor stored in a regular file. | public static void | writeWebXml(WebXml theWebXml, File theFile) Writes the specified document to a file. | public static void | writeWebXml(WebXml theWebXml, File theFile, String theEncoding) Writes the specified document to a file. | public static void | writeWebXml(WebXml theWebXml, File theFile, String theEncoding, boolean isIndent) Writes the specified document to a file. | public static void | writeWebXml(WebXml theWebXml, OutputStream theOutput, String theEncoding, boolean isIndent) Writes the specified document to an output stream. |
writeWebXml | public static void writeWebXml(WebXml theWebXml, File theFile) throws IOException(Code) | | Writes the specified document to a file.
Parameters: theWebXml - The descriptor to serialize Parameters: theFile - The file to write to throws: IOException - If an I/O error occurs |
writeWebXml | public static void writeWebXml(WebXml theWebXml, File theFile, String theEncoding) throws IOException(Code) | | Writes the specified document to a file.
Parameters: theWebXml - The descriptor to serialize Parameters: theFile - The file to write to Parameters: theEncoding - The character encoding to use throws: IOException - If an I/O error occurs |
writeWebXml | public static void writeWebXml(WebXml theWebXml, File theFile, String theEncoding, boolean isIndent) throws IOException(Code) | | Writes the specified document to a file.
Parameters: theWebXml - The descriptor to serialize Parameters: theFile - The file to write to Parameters: theEncoding - The character encoding to use Parameters: isIndent - Whether the written XML should be indented throws: IOException - If an I/O error occurs |
writeWebXml | public static void writeWebXml(WebXml theWebXml, OutputStream theOutput, String theEncoding, boolean isIndent) throws IOException(Code) | | Writes the specified document to an output stream.
Parameters: theWebXml - The descriptor to serialize Parameters: theOutput - The output stream to write to Parameters: theEncoding - The character encoding to use Parameters: isIndent - Whether the written XML should be indented throws: IOException - If an I/O error occurs |
|
|