Package com.amazonaws.regions
Class LegacyRegionXmlLoadUtils
- java.lang.Object
-
- com.amazonaws.regions.LegacyRegionXmlLoadUtils
-
@Deprecated public class LegacyRegionXmlLoadUtils extends Object
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description LegacyRegionXmlLoadUtils()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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 arbitraryInputStream
containing an XML file.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(URI uri, ClientConfiguration config)
Deprecated.Loads a set of region metadata by downloading an XML file from the given URI and parsing it.
-
-
-
Method Detail
-
load
public static RegionMetadata load(URI uri, ClientConfiguration config) throws IOException
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
public static RegionMetadata load(File file) throws IOException
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
public static RegionMetadata load(InputStream stream) throws IOException
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
public static RegionMetadata load(Class<?> clazz, String name) throws IOException
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
public static RegionMetadata load(ClassLoader classLoader, String name) throws IOException
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
-
-