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