public class KEWXmlDataLoader extends Object
Constructor and Description |
---|
KEWXmlDataLoader() |
Modifier and Type | Method and Description |
---|---|
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
|
public KEWXmlDataLoader()
public static void loadXmlResource(String resource) throws Exception
resource
- resource string in Spring resource notationException
public static void loadXmlClassLoaderResource(Class clazz, String path) throws Exception
clazz
- the class whose package should be used to qualify the pathpath
- the package-relative path of the XML resourceException
public static void loadXmlPackageResource(Class clazz, String path) throws Exception
clazz
- the class whose package should be used to qualify the pathpath
- the package-relative path of the XML resourceException
public static void loadXmlClassLoaderResource(ClassLoader classloader, String path) throws Exception
classloader
- the classloader from which to load the resourcepath
- the classloader path of the XML resourceException
public static void loadXmlFile(String fileName) throws Exception
fileName
- the path to the XML fileException
public static void loadXmlStream(InputStream xmlStream) throws Exception
xmlStream
- the XML byte streamException
public static FileXmlDocCollection getFileXmlDocCollection(InputStream stream, String tempFileName) throws IOException
xmlFile
- tempFileName
- IOException
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.