Package org.camunda.bpm.engine.impl.util
Class IoUtil
java.lang.Object
org.camunda.bpm.engine.impl.util.IoUtil
- Author:
- Tom Baeyens, Frederik Heremans, Joram Barrez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeSilently
(Closeable closeable) Closes the given stream.static void
flushSilently
(Flushable flushable) Flushes the given object.static File
static String
readClasspathResourceAsString
(String resourceName) static byte[]
readInputStream
(InputStream inputStream, String inputStreamName) static void
writeStringToFile
(String content, String filePath)
-
Constructor Details
-
IoUtil
public IoUtil()
-
-
Method Details
-
readInputStream
-
readClasspathResourceAsString
-
getFile
-
writeStringToFile
-
closeSilently
Closes the given stream. The same as callingCloseable.close()
, but errors while closing are silently ignored. -
flushSilently
Flushes the given object. The same as callingFlushable.flush()
, but errors while flushing are silently ignored.
-