Class IOUtils


  • public class IOUtils
    extends java.lang.Object
    Input/Output utilities.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toString​(java.net.URL url)
      Loads the contents at the given url as a string.
      static java.lang.String toString​(java.net.URL url, java.lang.String encoding)
      Loads the contents at the given url as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 string
        encoding - - the encoding
        Returns:
        the contents at the given url as a string