| java.lang.Object org.apache.cactus.integration.ant.deployment.application.ApplicationXmlIo
ApplicationXmlIo | public class ApplicationXmlIo (Code) | | Provides convenience methods for reading and writing enterprise application
deployment descriptors (application.xml).
since: Cactus 1.5 version: $Id: ApplicationXmlIo.java 239141 2005-02-15 10:31:44Z vmassol $ |
Method Summary | |
public static ApplicationXml | parseApplicationXml(InputStream theInput, EntityResolver theEntityResolver) Parses a deployment descriptor provided as input stream. | public static ApplicationXml | parseApplicationXmlFromFile(File theFile, EntityResolver theEntityResolver) Parses a deployment descriptor stored in a regular file. | public static void | writeApplicationXml(ApplicationXml theAppXml, File theFile) Writes the specified document to a file. | public static void | writeApplicationXml(ApplicationXml theAppXml, File theFile, String theEncoding) Writes the specified document to a file. | public static void | writeApplicationXml(ApplicationXml theAppXml, File theFile, String theEncoding, boolean isIndent) Writes the specified document to a file. | public static void | writeApplicationXml(ApplicationXml theAppXml, OutputStream theOutput, String theEncoding, boolean isIndent) Writes the specified document to an output stream. |
writeApplicationXml | public static void writeApplicationXml(ApplicationXml theAppXml, File theFile) throws IOException(Code) | | Writes the specified document to a file.
Parameters: theAppXml - The descriptor to serialize Parameters: theFile - The file to write to throws: IOException - If an I/O error occurs |
writeApplicationXml | public static void writeApplicationXml(ApplicationXml theAppXml, File theFile, String theEncoding) throws IOException(Code) | | Writes the specified document to a file.
Parameters: theAppXml - 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 |
writeApplicationXml | public static void writeApplicationXml(ApplicationXml theAppXml, File theFile, String theEncoding, boolean isIndent) throws IOException(Code) | | Writes the specified document to a file.
Parameters: theAppXml - 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 |
writeApplicationXml | public static void writeApplicationXml(ApplicationXml theAppXml, OutputStream theOutput, String theEncoding, boolean isIndent) throws IOException(Code) | | Writes the specified document to an output stream.
Parameters: theAppXml - 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 |
|
|