Class XmlUtil

    • Method Detail

      • getStreamSource

        @NonNull
        public static StreamSource getStreamSource​(@NonNull
                                                   URL url)
                                            throws IOException
        Create a Source based on the provided url.

        The caller of this method must ensure that the stream associated with this source is closed.

        Parameters:
        url - the URL to use for the source
        Returns:
        a new source
        Throws:
        IOException - if an error occurred while creating the underlying stream