Class LegacyRegionXmlLoadUtils

    • Constructor Detail

      • LegacyRegionXmlLoadUtils

        public LegacyRegionXmlLoadUtils()
        Deprecated.
    • 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 parse
        config - 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 arbitrary InputStream 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 resource
        name - 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 from
        name - the path to the resource
        Returns:
        the parsed region metadata
        Throws:
        IOException - if the resource is not found or cannot be parsed