Class InputStreamUtilitiesKt
-
- All Implemented Interfaces:
public final class InputStreamUtilitiesKt
-
-
Method Summary
Modifier and Type Method Description final static StringreadText(InputStream $self, Charset charset)Read this input stream to a string. final static UnitwriteTextToFile(InputStream $self, File file, Charset charset)Write this input stream to a text-file. -
-
Method Detail
-
readText
final static String readText(InputStream $self, Charset charset)
Read this input stream to a string.
- Parameters:
charset- Charset to use for reading.- Returns:
The text contained in this input stream.
-
writeTextToFile
final static Unit writeTextToFile(InputStream $self, File file, Charset charset)
Write this input stream to a text-file.
- Parameters:
file- The file to write tocharset- Charset to use for reading.
-
-
-
-