public Element getContentVersionValueElement(ContentVersionVO vo) throws SystemException, Bug, UnsupportedEncodingException
{
Element value = DocumentHelper.createElement("value");
if(enableCompression )
{
Base64Encoder encoder = new Base64Encoder();
CompressionHelper zip = new CompressionHelper();
byte[] val = zip.compress(vo.getVersionValue());
value.addCDATA(encoder.encode(val));
}
else
{
value.addCDATA(URLEncoder.encode(vo.getVersionValue(),"UTF-8"));
}