Package org.keycloak.common.util
Class StreamUtil
- java.lang.Object
-
- org.keycloak.common.util.StreamUtil
-
public final class StreamUtil extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringreadString(InputStream in)Deprecated.static StringreadString(InputStream in, Charset charset)Reads string from byte input stream.
-
-
-
Method Detail
-
readString
@Deprecated public static String readString(InputStream in) throws IOException
Deprecated.Reads string from byte input stream.- Parameters:
in- InputStream to build the String from- Returns:
- String representation of the input stream contents decoded using default charset
- Throws:
IOException
-
readString
public static String readString(InputStream in, Charset charset) throws IOException
Reads string from byte input stream.- Parameters:
in- InputStream to build the String fromcharset- Charset used to decode the input stream- Returns:
- String representation of the input stream contents decoded using given charset
- Throws:
IOException
-
-