Class IoUtil
- java.lang.Object
-
- org.flowable.common.engine.impl.util.IoUtil
-
public class IoUtil extends Object
- Author:
- Tom Baeyens, Frederik Heremans, Joram Barrez
-
-
Constructor Summary
Constructors Constructor Description IoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseSilently(InputStream inputStream)Closes the given stream.static voidcloseSilently(OutputStream outputStream)Closes the given stream.static FilegetFile(String filePath)static StringreadFileAsString(String filePath)static byte[]readInputStream(InputStream inputStream, String inputStreamName)static voidwriteStringToFile(String content, String filePath)
-
-
-
Method Detail
-
readInputStream
public static byte[] readInputStream(InputStream inputStream, String inputStreamName)
-
closeSilently
public static void closeSilently(InputStream inputStream)
Closes the given stream. The same as callingInputStream.close(), but errors while closing are silently ignored.
-
closeSilently
public static void closeSilently(OutputStream outputStream)
Closes the given stream. The same as callingOutputStream.close(), but errors while closing are silently ignored.
-
-