public class IoUtil extends Object
Constructor and Description |
---|
IoUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
public static byte[] readInputStream(InputStream inputStream, String inputStreamName)
public static void closeSilently(InputStream inputStream)
InputStream.close()
, but
errors while closing are silently ignored.public static void closeSilently(OutputStream outputStream)
OutputStream.close()
, but
errors while closing are silently ignored.Copyright © 2015. All rights reserved.