org.camunda.commons.utils
Class IoUtil
java.lang.Object
org.camunda.commons.utils.IoUtil
public final class IoUtil
- extends Object
- Author:
- Sebastian Menski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IoUtil
public IoUtil()
inputStreamAsString
public static String inputStreamAsString(InputStream inputStream)
- Returns the input stream as
String.
- Parameters:
inputStream - the input stream
stringAsInputStream
public static InputStream stringAsInputStream(String string)
- Returns the
String as InputStream.
- Parameters:
string - the String to convert
- Returns:
- the
InputStream containing the String
closeSilently
public static void closeSilently(Closeable closeable)
- Close a closable ignoring any IO exception.
- Parameters:
closeable - the closable to close
Copyright © 2014 camunda services GmbH. All Rights Reserved.