org.kuali.rice.kew.batch
Class KEWXmlDataLoader

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

public class KEWXmlDataLoader
extends Object

This is a description of what this class does - arh14 don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
KEWXmlDataLoader()
           
 
Method Summary
static FileXmlDocCollection getFileXmlDocCollection(InputStream stream, String tempFileName)
          Helper method that turns a stream into a FileXmlDocCollection by first making a copy on the file system.
static void loadXmlClassLoaderResource(ClassLoader classloader, String path)
          Loads the XML resource from the specified classloader
static void loadXmlClassLoaderResource(Class clazz, String path)
          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
static void loadXmlFile(String fileName)
          Load the XML file from the file system.
static void loadXmlPackageResource(Class clazz, String path)
          Loads the XML resource from the classloader, from the package of the specified class.
static void loadXmlResource(String resource)
          Loads the XML specified by the resource string, which should be in Spring resource notation
static void loadXmlStream(InputStream xmlStream)
          Loads XML from a stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KEWXmlDataLoader

public KEWXmlDataLoader()
Method Detail

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


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.