@Deprecated public class LegacyRegionXmlLoadUtils extends Object
Constructor and Description |
---|
LegacyRegionXmlLoadUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RegionMetadata |
load(Class<?> clazz,
String name)
Deprecated.
Loads a set of region metadata from an XML file stored as a resource of
the classloader used to load the given class.
|
static RegionMetadata |
load(ClassLoader classLoader,
String name)
Deprecated.
Loads a set of region metadata from an XML file stored as a resource
of the given classloader.
|
static RegionMetadata |
load(File file)
Deprecated.
Loads a set of region metadata by parsing the given file.
|
static RegionMetadata |
load(InputStream stream)
Deprecated.
Loads a set of region metadata from an arbitrary
InputStream
containing an XML file. |
static RegionMetadata |
load(URI uri,
ClientConfiguration config)
Deprecated.
Loads a set of region metadata by downloading an XML file from the
given URI and parsing it.
|
public static RegionMetadata load(URI uri, ClientConfiguration config) throws IOException
uri
- the uri of the XML file to parseconfig
- configuration for the HTTP client to use to fetch the fileIOException
- any error while reading data.public static RegionMetadata load(File file) throws IOException
file
- the region metadata to load fromIOException
- any error while reading from file.public static RegionMetadata load(InputStream stream) throws IOException
InputStream
containing an XML file.stream
- the stream to load fromIOException
- on error reading from the streampublic static RegionMetadata load(Class<?> clazz, String name) throws IOException
clazz
- the class to use as a base for the resourcename
- the path to the resource, relative to the given classIOException
- if the resource is not found or cannot be parsedpublic static RegionMetadata load(ClassLoader classLoader, String name) throws IOException
classLoader
- the class loader to load the resource fromname
- the path to the resourceIOException
- if the resource is not found or cannot be parsedCopyright © 2016. All rights reserved.