Package org.kuali.rice.kew.batch
Class KEWXmlDataLoader
java.lang.Object
org.kuali.rice.kew.batch.KEWXmlDataLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.kuali.rice.core.api.impex.xml.FileXmlDocCollectiongetFileXmlDocCollection(InputStream stream, String tempFileName) Helper method that turns a stream into a FileXmlDocCollection by first making a copy on the file system.static voidloadXmlClassLoaderResource(ClassLoader classloader, String path) Loads the XML resource from the specified classloaderstatic voidloadXmlClassLoaderResource(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 slashstatic voidloadXmlFile(String fileName) Load the XML file from the file system.static voidloadXmlPackageResource(Class clazz, String path) Loads the XML resource from the classloader, from the package of the specified class.static voidloadXmlResource(String resource) Loads the XML specified by the resource string, which should be in Spring resource notationstatic voidloadXmlStream(InputStream xmlStream) Loads XML from a stream
-
Constructor Details
-
KEWXmlDataLoader
public KEWXmlDataLoader()
-
-
Method Details
-
loadXmlResource
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
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 pathpath- the package-relative path of the XML resource- Throws:
Exception
-
loadXmlPackageResource
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 pathpath- 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 resourcepath- the classloader path of the XML resource- Throws:
Exception
-
loadXmlFile
Load the XML file from the file system.- Parameters:
fileName- the path to the XML file- Throws:
Exception
-
loadXmlStream
Loads XML from a stream- Parameters:
xmlStream- the XML byte stream- Throws:
Exception
-
getFileXmlDocCollection
public static org.kuali.rice.core.api.impex.xml.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:
tempFileName-xmlFile-- Returns:
- Throws:
IOException
-