Package com.heroku.agent.metrics
Class Utils
- java.lang.Object
-
- com.heroku.agent.metrics.Utils
-
public final class Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringreadAllUtf8(InputStream inputStream)Fully reads the givenInputStreamas a UTF-8 encoded string.
-
-
-
Method Detail
-
readAllUtf8
public static String readAllUtf8(InputStream inputStream) throws IOException
Fully reads the givenInputStreamas 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.
-
-