Class Utils


  • public final class Utils
    extends Object
    • Method Detail

      • readAllUtf8

        public static String readAllUtf8​(InputStream inputStream)
                                  throws IOException
        Fully reads the given InputStream as a UTF-8 encoded string.
        Parameters:
        inputStream - The stream to read.
        Returns:
        The data from the given stream, interpreted as a UTF-8 string.
        Throws:
        IOException - If an IO related error occurred.