org.camunda.bpm.engine.impl.util
Class IoUtil

java.lang.Object
  extended by org.camunda.bpm.engine.impl.util.IoUtil

public class IoUtil
extends Object

Author:
Tom Baeyens, Frederik Heremans, Joram Barrez

Constructor Summary
IoUtil()
           
 
Method Summary
static void closeSilently(InputStream inputStream)
          Closes the given stream.
static void closeSilently(OutputStream outputStream)
          Closes the given stream.
static File getFile(String filePath)
           
static String readFileAsString(String filePath)
           
static byte[] readInputStream(InputStream inputStream, String inputStreamName)
           
static void writeStringToFile(String content, String filePath)
           
 
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

readInputStream

public static byte[] readInputStream(InputStream inputStream,
                                     String inputStreamName)

readFileAsString

public static String readFileAsString(String filePath)

getFile

public static File getFile(String filePath)

writeStringToFile

public static void writeStringToFile(String content,
                                     String filePath)

closeSilently

public static void closeSilently(InputStream inputStream)
Closes the given stream. The same as calling InputStream.close(), but errors while closing are silently ignored.


closeSilently

public static void closeSilently(OutputStream outputStream)
Closes the given stream. The same as calling OutputStream.close(), but errors while closing are silently ignored.



Copyright © 2014 camunda services GmbH. All Rights Reserved.