Package org.projecthusky.valueset.utils
Class VsUtils
java.lang.Object
org.projecthusky.valueset.utils.VsUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
downloadAsByteArray
(URL url) Method to download as a byte arraystatic String
downloadAsString
(URL url) Method to download as a string
-
Constructor Details
-
VsUtils
public VsUtils()
-
-
Method Details
-
downloadAsString
Method to download as a string- Parameters:
url
- the url to download form- Returns:
- the string of the downloaded content
- Throws:
IOException
- occures on errors during download
-
downloadAsByteArray
Method to download as a byte array- Parameters:
url
- the url to download form- Returns:
- the byte array of the downloaded content
- Throws:
IOException
- occures on errors during download
-