Package com.soklet.util
Class IoUtils
java.lang.Object
com.soklet.util.IoUtils
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyStream
(InputStream inputStream, OutputStream outputStream) static void
copyStreamCloseAfterwards
(InputStream inputStream, OutputStream outputStream) static byte[]
copyStreamToBytes
(InputStream inputStream) static byte[]
copyStreamToBytesCloseAfterwards
(InputStream inputStream) static String
stringFromStream
(InputStream inputStream) static String
stringFromStreamCloseAfterwards
(InputStream inputStream)
-
Method Details
-
copyStream
public static void copyStream(InputStream inputStream, OutputStream outputStream) throws IOException - Throws:
IOException
-
copyStreamCloseAfterwards
public static void copyStreamCloseAfterwards(InputStream inputStream, OutputStream outputStream) throws IOException - Throws:
IOException
-
copyStreamToBytes
- Throws:
IOException
-
copyStreamToBytesCloseAfterwards
- Throws:
IOException
-
stringFromStream
- Throws:
IOException
-
stringFromStreamCloseAfterwards
- Throws:
IOException
-