Class IoUtil
java.lang.Object
org.zeroturnaround.javarebel.integration.util.IoUtil
Helper methods for managing streams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseStream(Closeable in) static voidcopy(InputStream in, OutputStream out) static voidstatic byte[]getBytes(InputStream in) static byte[]static byte[]static InputStreamgetInputStream(File file) static URLstatic voidwrite(byte[] bytes, OutputStream out)
-
Constructor Details
-
IoUtil
public IoUtil()
-
-
Method Details
-
write
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
getBytesAndClose
- Throws:
IOException
-
getBytesAndClose
-
closeStream
-
getInputStream
-
getURL
-