@Deprecated
public class LegacyRegionXmlLoadUtils
extends java.lang.Object
Constructor and Description |
---|
LegacyRegionXmlLoadUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RegionMetadata |
load(java.lang.Class<?> clazz,
java.lang.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(java.lang.ClassLoader classLoader,
java.lang.String name)
Deprecated.
Loads a set of region metadata from an XML file stored as a resource
of the given classloader.
|
static RegionMetadata |
load(java.io.File file)
Deprecated.
Loads a set of region metadata by parsing the given file.
|
static RegionMetadata |
load(java.io.InputStream stream)
Deprecated.
Loads a set of region metadata from an arbitrary
InputStream
containing an XML file. |
static RegionMetadata |
load(java.net.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(java.net.URI uri, ClientConfiguration config) throws java.io.IOException
uri
- the uri of the XML file to parseconfig
- configuration for the HTTP client to use to fetch the filejava.io.IOException
- any error while reading data.public static RegionMetadata load(java.io.File file) throws java.io.IOException
file
- the region metadata to load fromjava.io.IOException
- any error while reading from file.public static RegionMetadata load(java.io.InputStream stream) throws java.io.IOException
InputStream
containing an XML file.stream
- the stream to load fromjava.io.IOException
- on error reading from the streampublic static RegionMetadata load(java.lang.Class<?> clazz, java.lang.String name) throws java.io.IOException
clazz
- the class to use as a base for the resourcename
- the path to the resource, relative to the given classjava.io.IOException
- if the resource is not found or cannot be parsedpublic static RegionMetadata load(java.lang.ClassLoader classLoader, java.lang.String name) throws java.io.IOException
classLoader
- the class loader to load the resource fromname
- the path to the resourcejava.io.IOException
- if the resource is not found or cannot be parsed