|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.module.AbstractDescriptorIo
public abstract class AbstractDescriptorIo
Provides convenience methods for reading and writing web deployment descriptors.
| Constructor Summary | |
|---|---|
protected |
AbstractDescriptorIo()
Utility class should not have a public or default constructor. |
| Method Summary | |
|---|---|
static javax.xml.parsers.DocumentBuilder |
createDocumentBuilder()
|
static java.io.File[] |
writeAll(J2eeDescriptor descriptor,
java.lang.String dir)
Writes the WebXml and its associated vendor descriptors to the specified directory. |
static void |
writeDescriptor(Descriptor descriptor,
java.io.File file)
Writes the specified document to a file. |
static void |
writeDescriptor(Descriptor descriptor,
java.io.File file,
java.lang.String encoding)
Writes the specified document to a file. |
static void |
writeDescriptor(Descriptor descriptor,
java.io.File file,
java.lang.String encoding,
boolean isIndent)
Writes the specified document to a file. |
static void |
writeDescriptor(Descriptor descriptor,
java.io.OutputStream out,
java.lang.String encoding,
boolean isIndent)
Writes the specified document to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractDescriptorIo()
| Method Detail |
|---|
public static javax.xml.parsers.DocumentBuilder createDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
DocumentBuilder instance
javax.xml.parsers.ParserConfigurationException - in case of error
public static void writeDescriptor(Descriptor descriptor,
java.io.File file)
throws java.io.IOException
descriptor - The descriptor to serializefile - The file to write to
java.io.IOException - If an I/O error occurs
public static void writeDescriptor(Descriptor descriptor,
java.io.File file,
java.lang.String encoding)
throws java.io.IOException
descriptor - The descriptor to serializefile - The file to write toencoding - The character encoding to use
java.io.IOException - If an I/O error occurs
public static void writeDescriptor(Descriptor descriptor,
java.io.File file,
java.lang.String encoding,
boolean isIndent)
throws java.io.IOException
descriptor - The descriptor to serializefile - The file to write toencoding - The character encoding to useisIndent - Whether the written XML should be indented
java.io.IOException - If an I/O error occurs
public static void writeDescriptor(Descriptor descriptor,
java.io.OutputStream out,
java.lang.String encoding,
boolean isIndent)
throws java.io.IOException
descriptor - The descriptor to serializeout - The output stream to write toencoding - The character encoding to useisIndent - Whether the written XML should be indented
java.io.IOException - If an I/O error occurs
public static java.io.File[] writeAll(J2eeDescriptor descriptor,
java.lang.String dir)
throws java.io.IOException
descriptor - The descriptor to serializedir - Directory to store the descriptors in
java.io.IOException - if a I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||