Package oracle.stellent.ridc.config
Interface ConfigurationSerializer<T extends IdcClientConfig>
- All Known Implementing Classes:
XmlConfigurationSerializer
public interface ConfigurationSerializer<T extends IdcClientConfig>
Serialize in and out the configuration of the clients.
-
Method Summary
Modifier and TypeMethodDescriptionreadConfiguration(InputStream stream) Read a list of configuration into a new IdcClientManager from an XML streamvoidserializeConfiguration(OutputStream stream, IdcClientManager clientManager) Serialize all configurations in an IdcClientManager to an XML stream
-
Method Details
-
readConfiguration
Read a list of configuration into a new IdcClientManager from an XML stream- Parameters:
stream- XML stream that contains the list of configuration- Returns:
- a new IdcClientManager that receives the list of configuration
- Throws:
ConfigurationExceptionIdcClientException
-
serializeConfiguration
void serializeConfiguration(OutputStream stream, IdcClientManager clientManager) throws ConfigurationException Serialize all configurations in an IdcClientManager to an XML stream- Parameters:
stream- the XML stream that receives the list of configurationclientManager- the IdcClientManager that contains the list of configuration- Throws:
ConfigurationException
-