org.wso2.carbon.registry.dump
Class DumpUtils

java.lang.Object
  extended by org.wso2.carbon.registry.dump.DumpUtils

public class DumpUtils
extends Object


Constructor Summary
DumpUtils()
           
 
Method Summary
static void copy(File src, File dst)
          copying hte file to another
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
static boolean deleteFile(File file)
           
static String encodeResourcename(String resourceName)
           
static org.apache.axiom.om.OMElement getOMElmentFromMetafile(String metafilename, boolean isCollection, String path)
           
static String getResourceName(String resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpUtils

public DumpUtils()
Method Detail

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.