XmlManager::registerCompression

#include <DbXml.hpp>

void XmlManager::registerCompression(const char *name, 
        XmlCompression &compression)

Identifies an XmlCompression instance to be used for document compression in whole document storage containers.

Parameters

name

The name of the compression instance. This name is used to identify a compression instance when creating a container using the configuration value set by XmlContainerConfig::setCompressionName.

compression

An instance of XmlCompression to be used to compress XML documents when they are inserted into the container, and decompress them when they are retrieved.

Errors

The XmlManager::registerCompression method may fail and throw XmlException , encapsulating one of the following non-zero errors:

INVALID_VALUE

Name has already been registered

Class

XmlManager

See Also

XmlManager Methods