Class KEWXmlDataLoader

java.lang.Object
org.kuali.rice.kew.batch.KEWXmlDataLoader

public class KEWXmlDataLoader extends Object
  • Constructor Details

    • KEWXmlDataLoader

      public KEWXmlDataLoader()
  • Method Details

    • loadXmlResource

      public static void loadXmlResource(String resource) throws Exception
      Loads the XML specified by the resource string, which should be in Spring resource notation
      Parameters:
      resource - resource string in Spring resource notation
      Throws:
      Exception
    • loadXmlClassLoaderResource

      public static void loadXmlClassLoaderResource(Class clazz, String path) throws Exception
      Loads the XML resource from the classloader, from the package of the specified class if the class appears relative, or from the root of the classloader if it contains a slash
      Parameters:
      clazz - the class whose package should be used to qualify the path
      path - the package-relative path of the XML resource
      Throws:
      Exception
    • loadXmlPackageResource

      public static void loadXmlPackageResource(Class clazz, String path) throws Exception
      Loads the XML resource from the classloader, from the package of the specified class.
      Parameters:
      clazz - the class whose package should be used to qualify the path
      path - the package-relative path of the XML resource
      Throws:
      Exception
    • loadXmlClassLoaderResource

      public static void loadXmlClassLoaderResource(ClassLoader classloader, String path) throws Exception
      Loads the XML resource from the specified classloader
      Parameters:
      classloader - the classloader from which to load the resource
      path - the classloader path of the XML resource
      Throws:
      Exception
    • loadXmlFile

      public static void loadXmlFile(String fileName) throws Exception
      Load the XML file from the file system.
      Parameters:
      fileName - the path to the XML file
      Throws:
      Exception
    • loadXmlStream

      public static void loadXmlStream(InputStream xmlStream) throws Exception
      Loads XML from a stream
      Parameters:
      xmlStream - the XML byte stream
      Throws:
      Exception
    • getFileXmlDocCollection

      public static FileXmlDocCollection getFileXmlDocCollection(InputStream stream, String tempFileName) throws IOException
      Helper method that turns a stream into a FileXmlDocCollection by first making a copy on the file system.
      Parameters:
      xmlFile -
      tempFileName -
      Returns:
      Throws:
      IOException