Package org.camunda.bpm.engine.impl.util
Class IoUtil
- java.lang.Object
-
- org.camunda.bpm.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(Closeable closeable)Closes the given stream.static voidflushSilently(Flushable flushable)Flushes the given object.static FilegetFile(String filePath)static StringreadClasspathResourceAsString(String resourceName)static byte[]readInputStream(InputStream inputStream, String inputStreamName)static voidwriteStringToFile(String content, String filePath)
-
-
-
Method Detail
-
readInputStream
public static byte[] readInputStream(InputStream inputStream, String inputStreamName)
-
readClasspathResourceAsString
public static String readClasspathResourceAsString(String resourceName)
-
closeSilently
public static void closeSilently(Closeable closeable)
Closes the given stream. The same as callingCloseable.close(), but errors while closing are silently ignored.
-
flushSilently
public static void flushSilently(Flushable flushable)
Flushes the given object. The same as callingFlushable.flush(), but errors while flushing are silently ignored.
-
-