/** * Performs all required pre-import steps.<p> * * The content is *NOT* changed in the implementation of this class.<p> * * @param source the source path of the resource * @param destination the destination path of the resource * @param content the content of the resource * @param resType the type of the resource * @return the (prepared) content of the resource */ protected byte[] convertContent(String source, String destination, byte[] content, String resType) { // if the import is older than version 3, some additional conversions must be made if (getVersion() < 3) { if ("page".equals(resType)) { // if the imported resource is a page, store its path inside the VFS for later // integration with its body m_pageStorage.add(destination); } else if ("folder".equals(resType)) { // check if the imported resource is a folder. Folders created in the /system/bodies/ folder if (destination.startsWith(VFS_PATH_BODIES.substring(1))) { // must be removed since we do not use body files anymore. m_folderStorage.add(destination); } } } return content; }
/** * Performs all required pre-import steps.<p> * * The content is *NOT* changed in the implementation of this class.<p> * * @param source the source path of the resource * @param destination the destination path of the resource * @param content the content of the resource * @param resType the type of the resource * @return the (prepared) content of the resource */ protected byte[] convertContent(String source, String destination, byte[] content, String resType) { // if the import is older than version 3, some additional conversions must be made if (getVersion() < 3) { if ("page".equals(resType)) { // if the imported resource is a page, store its path inside the VFS for later // integration with its body m_pageStorage.add(destination); } else if ("folder".equals(resType)) { // check if the imported resource is a folder. Folders created in the /system/bodies/ folder if (destination.startsWith(VFS_PATH_BODIES.substring(1))) { // must be removed since we do not use body files anymore. m_folderStorage.add(destination); } } } return content; }
if ((getVersion() < 3) && m_convertToXmlPage) { mergePageFiles(); removeFolders();
if ((getVersion() < 3) && m_convertToXmlPage) { mergePageFiles(); removeFolders();