Class XmlUtil

java.lang.Object
dev.metaschema.core.model.util.XmlUtil

public final class XmlUtil extends Object
Provides utility methods for working with XML sources and streams.
  • Method Details

    • 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