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 voidcopyStream(InputStream inputStream, OutputStream outputStream) static voidcopyStreamCloseAfterwards(InputStream inputStream, OutputStream outputStream) static byte[]copyStreamToBytes(InputStream inputStream) static byte[]copyStreamToBytesCloseAfterwards(InputStream inputStream) static StringstringFromStream(InputStream inputStream) static StringstringFromStreamCloseAfterwards(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
-