|
|||||||||
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. |
void |
setIndent(boolean indent)
Sets the Serializer's use of indentation. |
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 |
public void setIndent(boolean indent)
indent
- a boolean
valueprotected void setOutputStream(java.io.OutputStream out)
out
- an OutputStream
valueprotected javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
SAXTransformerFactory
valueprotected void serialize(Configuration source) throws org.xml.sax.SAXException, ConfigurationException
source
- a Configuration
valueorg.xml.sax.SAXException
- if an error occursConfigurationException
- if an error occursprotected void serializeElement(Configuration element) throws org.xml.sax.SAXException, ConfigurationException
element
- a Configuration
valueorg.xml.sax.SAXException
- if an error occursConfigurationException
- if an error occurspublic void serializeToFile(java.lang.String filename, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
filename
- a String
valuesource
- a Configuration
valueorg.xml.sax.SAXException
- if an error occursjava.io.IOException
- if an error occursConfigurationException
- if an error occurspublic void serializeToFile(java.io.File file, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
file
- a File
valuesource
- a Configuration
valueorg.xml.sax.SAXException
- if an error occursjava.io.IOException
- if an error occursConfigurationException
- if an error occurspublic void serialize(java.io.OutputStream outputStream, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
outputStream
- an OutputStream
valuesource
- a Configuration
valueorg.xml.sax.SAXException
- if an error occursjava.io.IOException
- if an error occursConfigurationException
- if an error occurspublic void serialize(java.lang.String uri, Configuration source) throws org.xml.sax.SAXException, java.io.IOException, ConfigurationException
java.net.URL
object.uri
- a String
valuesource
- a Configuration
valueorg.xml.sax.SAXException
- if an error occursjava.io.IOException
- if an error occursConfigurationException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |