org.opencms.importexport
Class CmsXmlPageConverter

java.lang.Object
  extended by org.opencms.importexport.CmsXmlPageConverter

Deprecated. no longer in use

public final class CmsXmlPageConverter
extends java.lang.Object

Converts legacy pages (OpenCms 5 and earlier) to XML pages (OpenCms 6).

Since:
6.0.0
Version:
$Revision: 1.31 $
Author:
Carsten Weinholz

Method Summary
static CmsXmlPage convertToXmlPage(CmsObject cms, byte[] content, java.util.Locale locale, java.lang.String encoding)
          Deprecated. Converts the contents of a page into an xml page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertToXmlPage

public static CmsXmlPage convertToXmlPage(CmsObject cms,
                                          byte[] content,
                                          java.util.Locale locale,
                                          java.lang.String encoding)
                                   throws CmsImportExportException,
                                          CmsXmlException
Deprecated. 
Converts the contents of a page into an xml page.

Parameters:
cms - the cms object
content - the content used with xml templates
locale - the locale of the body element(s)
encoding - the encoding to the xml page
Returns:
the xml page content or null if conversion failed
Throws:
CmsImportExportException - if the body content or the XMLTEMPLATE element were not found
CmsXmlException - if there is an error reading xml contents from the byte array into a document