Package com.aliucord.utils
Class IOUtils
-
- All Implemented Interfaces:
public final class IOUtils
-
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
Modifier and Type Method Description static String
readAsText(@NonNull() InputStream is)
Reads the InputStream as text static Array<byte>
readBytes(@NonNull() InputStream stream)
Reads the InputStream into a byte[]
static void
pipe(@NonNull() InputStream is, @NonNull() OutputStream os)
Pipe an InputStream into an OutputStream -
-
Method Detail
-
readAsText
@NonNull() static String readAsText(@NonNull() InputStream is)
Reads the InputStream as text
- Parameters:
is
- The input stream to read
-
readBytes
@NonNull() static Array<byte> readBytes(@NonNull() InputStream stream)
Reads the InputStream into a
byte[]
- Parameters:
stream
- The stream to read
-
pipe
static void pipe(@NonNull() InputStream is, @NonNull() OutputStream os)
Pipe an InputStream into an OutputStream
- Parameters:
is
- InputStreamos
- OutputStream
-
-
-
-