Class IOUtils
- java.lang.Object
-
- de.hybris.platform.searchservices.util.IOUtils
-
public class IOUtils extends java.lang.ObjectInput/Output utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringtoString(java.net.URL url)Loads the contents at the given url as a string.static java.lang.StringtoString(java.net.URL url, java.lang.String encoding)Loads the contents at the given url as a string.
-
-
-
Method Detail
-
toString
public static final java.lang.String toString(java.net.URL url)
Loads the contents at the given url as a string.- Parameters:
url- - the resource that contains the JSON string- Returns:
- the contents at the given url as a string
-
toString
public static final java.lang.String toString(java.net.URL url, java.lang.String encoding)Loads the contents at the given url as a string.- Parameters:
url- - the resource that contains the JSON stringencoding- - the encoding- Returns:
- the contents at the given url as a string
-
-