Package com.amazonaws.regions
Class LegacyRegionXmlLoadUtils
java.lang.Object
com.amazonaws.regions.LegacyRegionXmlLoadUtils
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegionMetadata
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 arbitraryInputStream
containing an XML file.static RegionMetadata
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
(URI uri, ClientConfiguration config) Deprecated.Loads a set of region metadata by downloading an XML file from the given URI and parsing it.
-
Constructor Details
-
LegacyRegionXmlLoadUtils
public LegacyRegionXmlLoadUtils()Deprecated.
-
-
Method Details
-
load
Deprecated.Loads a set of region metadata by downloading an XML file from the given URI and parsing it.- Parameters:
uri
- the uri of the XML file to parseconfig
- configuration for the HTTP client to use to fetch the file- Throws:
IOException
- any error while reading data.
-
load
Deprecated.Loads a set of region metadata by parsing the given file.- Parameters:
file
- the region metadata to load from- Throws:
IOException
- any error while reading from file.
-
load
Deprecated.Loads a set of region metadata from an arbitraryInputStream
containing an XML file.- Parameters:
stream
- the stream to load from- Returns:
- the loaded region metadata
- Throws:
IOException
- on error reading from the stream
-
load
Deprecated.Loads a set of region metadata from an XML file stored as a resource of the classloader used to load the given class.- Parameters:
clazz
- the class to use as a base for the resourcename
- the path to the resource, relative to the given class- Returns:
- the parsed region metadata
- Throws:
IOException
- if the resource is not found or cannot be parsed
-
load
Deprecated.Loads a set of region metadata from an XML file stored as a resource of the given classloader.- Parameters:
classLoader
- the class loader to load the resource fromname
- the path to the resource- Returns:
- the parsed region metadata
- Throws:
IOException
- if the resource is not found or cannot be parsed
-