java.lang.Object
dev.metaschema.core.model.util.XmlUtil
Provides utility methods for working with XML sources and streams.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StreamSourcegetStreamSource(URL url) Create aSourcebased on the providedurl.
-
Method Details
-
getStreamSource
Create aSourcebased 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
-