Class XmlUtil
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.util.XmlUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamSource
getStreamSource(URL url)
Create aSource
based on the providedurl
.
-
-
-
Method Detail
-
getStreamSource
@NonNull public static StreamSource getStreamSource(@NonNull URL url) throws IOException
Create aSource
based on the providedurl
.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
-
-