|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.configuration.DefaultConfigurationSerializer
A ConfigurationSerializer serializes configurations via SAX2 compliant parser.
Constructor Summary | |
DefaultConfigurationSerializer()
Build a ConfigurationSerializer |
Method Summary | |
protected javax.xml.transform.sax.SAXTransformerFactory |
getTransformerFactory()
Get the SAXTransformerFactory so we can get a serializer without being tied to one vendor. |
protected void |
serialize(Configuration source)
Start the serialization process. |
void |
serialize(java.io.OutputStream outputStream,
Configuration source)
Serialize the configuration object to an output stream. |
void |
serialize(java.lang.String uri,
Configuration source)
Serialize the configuration object to an output stream derived from an URI. |
protected void |
serializeElement(Configuration element)
Serialize each Configuration element. |
void |
serializeToFile(java.io.File file,
Configuration source)
Serialize the configuration object to a file using a File object. |
void |
serializeToFile(java.lang.String filename,
Configuration source)
Serialize the configuration object to a file using a filename. |
protected void |
setOutputStream(java.io.OutputStream out)
Internally set the output strream we will be using. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultConfigurationSerializer()
Method Detail |
protected void setOutputStream(java.io.OutputStream out)
protected javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
protected void serialize(Configuration source) throws org.xml.sax.SAXException, ConfigurationException
protected void serializeElement(Configuration element) throws org.xml.sax.SAXException, ConfigurationException
public void serializeToFile(java.lang.String filename, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
public void serializeToFile(java.io.File file, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
public void serialize(java.io.OutputStream outputStream, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
public void serialize(java.lang.String uri, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
java.net.URL
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |