| Modifier and Type | Field and Description |
|---|---|
| private Properties | |
| private SAXTransformerFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ContentHandler | Returns: contenthandler that goes to specified OutputStreamthe result result)Create a ContentHandler for an OutputStream |
| protected SAXTransformerFactory | Returns: aSAXTransformerFactory valueGet the SAXTransformerFactory so we can get a serializer without being tied to one vendor. |
| public void | serialize(final ContentHandler
a handler, final Configuration ContentHandler to serialize toa source)Configuration valueSerialize the configuration to a ContentHandler |
| public void | serialize(final OutputStream
an outputStream, final Configuration OutputStream valuea source)Configuration valueSerialize the configuration object to an output stream. |
| public void | serialize(final String
a uri, final Configuration String valuea source)Configuration valueSerialize the configuration object to an output stream derived from an URI. |
| public String | Returns: configuration serialized as a string.a source)Configuration valueSerialize the configuration object to a string |
| protected void | serializeElement(final ContentHandler
a handler, final NamespaceSupport ContentHandler to usea namespaceSupport, final Configuration NamespaceSupport to usea element)Configuration valueSerialize each Configuration element. |
| public void | serializeToFile(final String
a filename, final Configuration String valuea source)Configuration valueSerialize the configuration object to a file using a filename. |
| public void | serializeToFile(final File
a file, final Configuration File valuea source)Configuration valueSerialize the configuration object to a file using a File object. |
| public void |
| m_format | back to summary |
|---|---|
| private Properties m_format | |
| m_tfactory | back to summary |
|---|---|
| private SAXTransformerFactory m_tfactory | |
| DefaultConfigurationSerializer | back to summary |
|---|---|
| public DefaultConfigurationSerializer() | |
| createContentHandler | back to summary |
|---|---|
| protected ContentHandler createContentHandler(final Result result) Create a ContentHandler for an OutputStream
| |
| getTransformerFactory | back to summary |
|---|---|
| protected SAXTransformerFactory getTransformerFactory() Get the SAXTransformerFactory so we can get a serializer without being tied to one vendor.
| |
| serialize | back to summary |
|---|---|
| public void serialize(final ContentHandler handler, final Configuration source) throws SAXException, ConfigurationException Serialize the configuration to a ContentHandler
| |
| serialize | back to summary |
|---|---|
| public void serialize(final OutputStream outputStream, final Configuration source) throws SAXException, IOException, ConfigurationException Serialize the configuration object to an output stream.
| |
| serialize | back to summary |
|---|---|
| public void serialize(final String uri, final Configuration source) throws SAXException, IOException, ConfigurationException Serialize the configuration object to an output stream derived from an
URI. The URI must be resolveable by the
| |
| serialize | back to summary |
|---|---|
| public String serialize(final Configuration source) throws SAXException, ConfigurationException Serialize the configuration object to a string
| |
| serializeElement | back to summary |
|---|---|
| protected void serializeElement(final ContentHandler handler, final NamespaceSupport namespaceSupport, final Configuration element) throws SAXException, ConfigurationException Serialize each Configuration element. This method is called recursively.
| |
| serializeToFile | back to summary |
|---|---|
| public void serializeToFile(final String filename, final Configuration source) throws SAXException, IOException, ConfigurationException Serialize the configuration object to a file using a filename.
| |
| serializeToFile | back to summary |
|---|---|
| public void serializeToFile(final File file, final Configuration source) throws SAXException, IOException, ConfigurationException Serialize the configuration object to a file using a File object.
| |
| setIndent | back to summary |
|---|---|
| public void setIndent(boolean indent) Sets the Serializer's use of indentation. This will cause linefeeds to be added after each element, but it does not add any indentation via spaces.
| |