Package org.keycloak.common.util
Class StreamUtil
java.lang.Object
org.keycloak.common.util.StreamUtil
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.static String
readString
(InputStream in, Charset charset) Reads string from byte input stream.
-
Method Details
-
readString
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
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
-
readString(java.io.InputStream, java.nio.charset.Charset)
variant.