org.camunda.commons.utils
Class IoUtil

java.lang.Object
  extended by org.camunda.commons.utils.IoUtil

public final class IoUtil
extends Object

Author:
Sebastian Menski

Constructor Summary
IoUtil()
           
 
Method Summary
static void closeSilently(Closeable closeable)
          Close a closable ignoring any IO exception.
static String inputStreamAsString(InputStream inputStream)
          Returns the input stream as String.
static InputStream stringAsInputStream(String string)
          Returns the String as InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtil

public IoUtil()
Method Detail

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.