org.wso2.carbon.registry.dump
Class DumpUtils
java.lang.Object
org.wso2.carbon.registry.dump.DumpUtils
public class DumpUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DumpUtils
public DumpUtils()
getResourceName
public static String getResourceName(String resourcePath)
createMetaFile
public static void createMetaFile(String fileName,
org.apache.axiom.om.OMElement metaData,
long modifiedDateAtCO)
- creating the file that store the meta data of the current directory or file
- Parameters:
fileName
- metaData
- modifiedDateAtCO
-
getOMElmentFromMetafile
public static org.apache.axiom.om.OMElement getOMElmentFromMetafile(String metafilename,
boolean isCollection,
String path)
throws Exception
- Throws:
Exception
copy
public static void copy(File src,
File dst)
throws Exception
- copying hte file to another
- Parameters:
src
- dst
-
- Throws:
Exception
encodeResourcename
public static String encodeResourcename(String resourceName)
throws Exception
- Throws:
Exception
deleteFile
public static boolean deleteFile(File file)
Copyright © 2010. All Rights Reserved.