Class IOUtils
java.lang.Object
io.micrometer.core.instrument.util.IOUtils
public final class IOUtils
extends java.lang.Object
Utilities for IO.
-
Method Summary
Modifier and Type Method Description static java.lang.StringtoString(java.io.InputStream inputStream)Create aStringfromInputStreamwith defaultCharset.static java.lang.StringtoString(java.io.InputStream inputStream, java.nio.charset.Charset charset)Create aStringfromInputStreamwithCharset.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
toString
public static java.lang.String toString(@Nullable java.io.InputStream inputStream, java.nio.charset.Charset charset)Create aStringfromInputStreamwithCharset.- Parameters:
inputStream- sourceInputStreamcharset- sourceCharset- Returns:
- created
String
-
toString
Create aStringfromInputStreamwith defaultCharset.- Parameters:
inputStream- sourceInputStream- Returns:
- created
String
-