Class Utils

    • Method Detail

      • readStream

        public static String readStream​(InputStream inputStream)
                                 throws IOException
        Loads the given stream into memory, returns its content as String and finally close the stream.
        Throws:
        IOException - if the stream could not be loaded
      • getPathOnly

        public static String getPathOnly​(String fullPath)
        Extracts the path section of the given full path which syntax is [path][?query][#fragment]
        Parameters:
        fullPath - the full path from which we need to extract the path section
        Returns:
        the path section